SessionApi class abstract
Declares the functions that consist of Embrace's public API. You should not use SessionApi directly or implement it in your own custom classes, as new functions may be added in future. Use the Embrace class instead.
- Implementers
Constructors
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
-
addSessionProperty(
String key, String value, {bool permanent = false}) → void -
Annotates the session with a property defined by a
key
andvalue
. -
endSession(
{bool clearUserInfo = true}) → void - Manually forces the end of the current session and starts a new session.
-
getCurrentSessionId(
) → Future< String?> - Get the ID for the current session.
-
getSessionProperties(
) → Future< Map< String, String> > - Returns all properties for the current session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeSessionProperty(
String key) → void - Remove an existing property from the session
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited