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
ASAPPUserinstance.Declaration
Swift
public init(userIdentifier: String?, requestContextProvider: @escaping ASAPPRequestContextProvider)Parameters
userIdentifierA unique
Stringidentifier for the user. Ifnil, the user is anonymous and a special identifier will be automatically generated.requestContextProviderA function called to provide context information when making requests.
userLoginHandlerA function called when the user login action is performed.
ASAPPUser Class Reference