miniapp / com.rakuten.tech.mobile.miniapp.js.userinfo / UserInfoBridgeDispatcher
UserInfoBridgeDispatcher
interface UserInfoBridgeDispatcher
A class to provide the interfaces for getting user info e.g. user-name, profile-photo etc.
Functions
| getAccessToken | Get access token from host app.open fun ~~getAccessToken~~(miniAppId: String, onSuccess: (tokenData: TokenData) -> Unit, onError: (message: String) -> Unit): Unitopen fun ~~getAccessToken~~(miniAppId: String, accessTokenScope: AccessTokenScope, onSuccess: (tokenData: TokenData) -> Unit, onError: (message: String) -> Unit): Unitopen fun getAccessToken(miniAppId: String, accessTokenScope: AccessTokenScope, onSuccess: (tokenData: TokenData) -> Unit, onError: (tokenError: MiniAppAccessTokenError) -> Unit): Unit |
| getContacts | Get contacts from host app. You can also throw an Exception from this method to pass an error message to the mini app.open fun getContacts(onSuccess: (contacts: ArrayList<Contact>) -> Unit, onError: (message: String) -> Unit): Unit |
| getPoints | Get points from host app. You can also throw an Exception from this method to pass an error message to the mini app.open fun getPoints(onSuccess: (points: Points) -> Unit, onError: (pointsError: MiniAppPointsError) -> 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(onSuccess: (profilePhoto: String) -> Unit, onError: (message: String) -> Unit): Unit |
| 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(onSuccess: (userName: String) -> Unit, onError: (message: String) -> Unit): Unit |