MiniAppUIParams
public struct MiniAppUIParams
Struct that is needed to launch Mini App using Paramerters
-
init(title:
miniAppId: miniAppVersion: config: messageInterface: navigationInterface: queryParams: adsDisplayer: enableSharePreview: loadFromCacheIfFailed: ) Constructor for initializing MiniAppUIParams
Declaration
Swift
public init( title: String = "", miniAppId: String, miniAppVersion: String?, config: MiniAppSdkConfig? = nil, messageInterface: MiniAppMessageDelegate, navigationInterface: MiniAppNavigationDelegate? = nil, queryParams: String? = nil, adsDisplayer: MiniAppAdDisplayer? = nil, enableSharePreview: Bool = false, loadFromCacheIfFailed: Bool = false )
Parameters
title
Title of the mini app
miniAppId
Mini app ID
miniAppVersion
Mini app version number
config
Config that helps to configure endpoints at run time
messageInterface
Message interface delegate to communicate with Host app
navigationInterface
Navigation interface that keeps track of Mini app navigation stack
queryParams
Query parameters that is used while launching a mini app
adsDisplayer
Ad mob displayer delegate
enableSharePreview
Share Preview optional bool
loadFromCacheIfFailed
Bool to retrieve mini app from cache (If it is downloaded already)