miniapp / com.rakuten.tech.mobile.miniapp / MiniApp / createWithUrl
createWithUrl
abstract suspend fun createWithUrl(appUrl: String, miniAppMessageBridge: MiniAppMessageBridge, miniAppNavigator: MiniAppNavigator? = null, miniAppFileChooser: MiniAppFileChooser? = null, queryParams: String = ""): MiniAppDisplay
Creates a mini app using provided url. Mini app is NOT downloaded and cached in local, its content are read directly from the url. This should only be used for previewing a mini app from a local server.
Parameters
appUrl - a HTTP url containing Mini App content.
miniAppMessageBridge - the interface for communicating between host app & mini app.
miniAppNavigator - allow host app to handle specific urls such as external link.
miniAppFileChooser - allow host app to get the file path while choosing file inside the webview.
queryParams - the parameters will be appended with the miniapp url scheme.
Exceptions
MiniAppNotFoundException - when the specified Mini App URL cannot be reached.
MiniAppSdkException - when there is any other issue during loading or creating the view.