UserEventCreator

public class UserEventCreator: NSObject

EngageEvent creator for User events Identify should be called prior to logging user events to track latest user attributes.

  • Initializes the event creator for user events

    Declaration

    Swift

    public init(userId : String)

    Parameters

    userId

    userId of user

  • Creates EngageEvent representing user sign-up

    Declaration

    Swift

    public func onUserRegistered() -> EngageEvent

    Return Value

    EngageEvent representing user sign-up

  • Creates EngageEvent representing user login

    Declaration

    Swift

    public func onUserLogin() -> EngageEvent

    Return Value

    EngageEvent representing user login

  • Creates EngageEvent representing user logout

    Declaration

    Swift

    public func onUserLogout() -> EngageEvent

    Return Value

    EngageEvent representing user logout