ASAPPUser
@objc(ASAPPUser)
@objcMembers
public class ASAPPUser : NSObject
Holds configuration information pertaining to the current user session.
-
Whether the user is anonymous.
Declaration
Swift
public let isAnonymous: Bool
-
Unique identifier for the user.
Declaration
Swift
public let userIdentifier: String
-
Reference to context provider given at initialization.
Declaration
Swift
public let requestContextProvider: ASAPPRequestContextProvider
-
Creates an
ASAPPUser
instance.Declaration
Swift
public init(userIdentifier: String?, requestContextProvider: @escaping ASAPPRequestContextProvider)
Parameters
userIdentifier
A unique
String
identifier for the user. Ifnil
, the user is anonymous and a special identifier will be automatically generated.requestContextProvider
A function called to provide context information when making requests.
userLoginHandler
A function called when the user login action is performed.