NamiCustomerManager class

Manager class which providing functionality related to managing customer/user information

Constructors

NamiCustomerManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clearAllCustomerAttribute() Future<void>
clearCustomerAttribute(String attributeName) Future<void>
deviceId() Future<String>
Provide the unique identifier that Nami uses to identifier this device. Note: this identifier does not persist across app re-installs.
getCustomerAttribute(String attributeName) Future<String?>
isLoggedIn() Future<bool>
Returns whether the device is associated with an external identifier
journeyState() Future<CustomerJourneyState?>
returns current customer's journey state
loggedInId() Future<String?>
A string of the external identifier that Nami has stored. Returns null if no id has been stored, including if a string was passed to login that was not valid.
login({String withId = ""}) Future<void>
Provide a unique identifier that is used to link different devices to the same customer in the Nami platform. This customer id will also be returned in any data sent from the Nami servers to your systems as well.
logout() Future<void>
Disassociate a device from an external id.
registerAccountStateHandler() Stream<AccountState>
registerJourneyStateHandler() Stream<CustomerJourneyState>
setCustomerAttribute(Map<String, dynamic> map) Future<void>