miniapp / com.rakuten.tech.mobile.miniapp / MiniApp / create
create
abstract suspend fun create(appId:
String
, miniAppMessageBridge:
MiniAppMessageBridge
):
MiniAppDisplay
Creates a mini app. The mini app is downloaded, saved and provides a MiniAppDisplay when successful.
Parameters
appId
- mini app id.
miniAppMessageBridge
- the interface for communicating between host app & mini app
Exceptions
MiniAppNotFoundException
- when the specified mini app ID does not exist on the server
MiniAppHasNoPublishedVersionException
- when the specified mini app ID exists on the
server but has no published versions
MiniAppSdkException
- when there is any other issue during fetching,
downloading or creating the view.abstract suspend fun create(appId:
String
, miniAppMessageBridge:
MiniAppMessageBridge
, miniAppNavigator:
MiniAppNavigator
):
MiniAppDisplay
Same as createString,MiniAppMessageBridge. Use this to control external url loader.
Parameters
miniAppNavigator
- allow host app to handle specific urls such as external link.