miniapp / com.rakuten.tech.mobile.miniapp.js.userinfo / UserInfoBridgeDispatcher
UserInfoBridgeDispatcher
abstract class UserInfoBridgeDispatcher
A class to provide the interfaces for getting user info e.g. user-name, profile-photo etc.
Constructors
| <init> | A class to provide the interfaces for getting user info e.g. user-name, profile-photo etc.UserInfoBridgeDispatcher() |
Functions
| getAccessToken | Get access token from host app.open fun getAccessToken(miniAppId: String, onSuccess: (tokenData: TokenData) -> Unit, onError: (message: String) -> Unit): Unit |
| getProfilePhoto | Get profile photo url from host app. You can also throw an Exception from this method to pass an error message to the mini app.open fun getProfilePhoto(): String |
| getUserName | Get user name from host app. You can also throw an Exception from this method to pass an error message to the mini app.open fun getUserName(): String |