ASAPPUser

@objc(ASAPPUser)
@objcMembers
public class ASAPPUser : NSObject

Holds configuration information pertaining to the current user session.

Initialization

  • Creates an ASAPPUser instance.

    Declaration

    Swift

    public init(userIdentifier: String?,
                requestContextProvider: @escaping ASAPPRequestContextProvider)

    Parameters

    userIdentifier

    A unique String identifier for the user. If nil, 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.