UserInfoProvider
@objc
public protocol UserInfoProvider
Interface which client app should implement in order for InAppMessaging SDK to get user information when needed.
-
Access token for user tracking.
Only return access token if user is logged in. Else return null.
Declaration
Swift
@objc func getAccessToken() -> String?
Return Value
String of access token.
-
Unique string to identify the user (like login ID or e-mail).
Only return user ID if user is logged in in the current session.
Declaration
Swift
@objc func getUserID() -> String?
Return Value
String of the user ID.
-
Unique string to track the user.
Only return Tracking Identifier used in the current session.
Note
This value cannot be present along with
accessToken
.Declaration
Swift
@objc func getIDTrackingIdentifier() -> String?
Return Value
String of the Identity Tracking Identifier.