MiniAppUserInfoDelegate
public protocol MiniAppUserInfoDelegate : AnyObject
Public Protocol that will be used by the Mini App to communicate with the Native implementation for User profile related retrieval
-
getUserName(completionHandler:
Default implementation) Interface that is used to retrieve the user name from the User Profile
Default Implementation
Declaration
Swift
func getUserName(completionHandler: @escaping (Result<String?, MASDKError>) -> Void)
-
getProfilePhoto(completionHandler:
Default implementation) Interface that is used to retrieve the Image URI
Default Implementation
Declaration
Swift
func getProfilePhoto(completionHandler: @escaping (Result<String?, MASDKError>) -> Void)
-
getContacts(completionHandler:
Default implementation) Interface that is used to retrieve the Contact list
Default Implementation
Declaration
Swift
func getContacts(completionHandler: @escaping (Result<[MAContact]?, MASDKError>) -> Void)
-
getAccessToken(miniAppId:
Default implementationscopes: completionHandler: ) Interface that is used to retrieve the Token Info
Default Implementation
Declaration
Swift
func getAccessToken(miniAppId: String, scopes: MASDKAccessTokenScopes, completionHandler: @escaping (Result<MATokenInfo, MASDKAccessTokenError>) -> Void)
-
getPoints(completionHandler:
Default implementation) Interface that is used to retrieve rakuten points
Default Implementation
Declaration
Swift
func getPoints(completionHandler: @escaping (Result<MAPoints, MASDKPointError>) -> Void)
-
getContacts()
Extension methodMethod to support old version of getContacts() interface
Declaration
Swift
func getContacts() -> [MAContact]?
Return Value
List of MAContact
-
getAccessToken(miniAppId:
Extension methodcompletionHandler: ) Old interface that was used to retrieve the Token Info. Use of a MASDKAccessTokenScopes is now mandatory. Will be removed in v4.0+
Declaration
Swift
func getAccessToken(miniAppId: String, completionHandler: @escaping (Result<MATokenInfo, MASDKCustomPermissionError>) -> Void)