miniapp / com.rakuten.tech.mobile.miniapp.js / MiniAppMessageBridge
MiniAppMessageBridge
abstract class MiniAppMessageBridge
Bridge interface for communicating with mini app.
Constructors
<init> | Bridge interface for communicating with mini app.MiniAppMessageBridge() |
Functions
allowScreenOrientation | Allow miniapp to change screen orientation. The default setting is false.fun allowScreenOrientation(isAllowed: Boolean ): Unit |
getUniqueId | Get provided id of mini app for any purpose. You can also throw an Exception from this method to pass an error message to the mini app.abstract fun getUniqueId(): String |
postMessage | fun postMessage(jsonStr: String ): Unit |
requestCustomPermissions | Post custom permissions request.open fun requestCustomPermissions(permissionsWithDescription: List < Pair < MiniAppCustomPermissionType , String >>, callback: ( List < Pair < MiniAppCustomPermissionType , MiniAppCustomPermissionResult >>) -> Unit ): Unit |
requestDevicePermission | Post device permission request from external.open fun requestDevicePermission(miniAppPermissionType: MiniAppDevicePermissionType , callback: (isGranted: Boolean ) -> Unit ): Unit |
setAdMobDisplayer | Set implemented ads displayer. Can use the default provided class from sdk AdMobDisplayer.fun setAdMobDisplayer(adDisplayer: MiniAppAdDisplayer ): Unit |
setChatBridgeDispatcher | Set implemented chatBridgeDispatcher. Can use the default provided class from sdk ChatBridgeDispatcher.fun setChatBridgeDispatcher(bridgeDispatcher: ChatBridgeDispatcher ): Unit |
setUserInfoBridgeDispatcher | Set implemented userInfoBridgeDispatcher. Can use the default provided class from sdk UserInfoBridgeDispatcher.fun setUserInfoBridgeDispatcher(bridgeDispatcher: UserInfoBridgeDispatcher ): Unit |
shareContent | Share content info ShareInfo. This info is provided by mini app.open fun shareContent(content: String , callback: (isSuccess: Boolean , message: String ?) -> Unit ): Unit |