NexusSessions class
The sessions spine. identify names the end-user; track starts/refreshes
the journey session other services correlate into.
Constructors
- NexusSessions(NexusHttp _http, NexusIdentity _id, NexusConfig _cfg)
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
-
identify(
String distinctId, {String? email, String? name, String? phone, Map< String, Object?> ? traits}) → Future<void> - Identify the current end-user. All subsequent telemetry is attributed to it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> - Forget the current user (e.g. on logout) and start a fresh session. Also clears the persisted identity, so subsequent launches start anonymous again.
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
{Map< String, Object?> ? context}) → Future<String?> -
Start/refresh the active session and return its server
sessionId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited