SessionConfiguration class Initialization and configuration Sessions and data model
Configuration of session tracking.
- Annotations
Constructors
- SessionConfiguration({Duration? foregroundTimeout, Duration? backgroundTimeout, bool? continueSessionOnRestart})
-
const
Properties
- backgroundTimeout → Duration?
-
The amount of time that can elapse before the session expires while the
app is in the background.
final
- continueSessionOnRestart → bool?
-
Whether to resume the session persisted from a previous run of the app
if it has not timed out, rather than starting a new session on launch.
final
- foregroundTimeout → Duration?
-
The amount of time that can elapse before the session expires while the
app is in the foreground.
final
- 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
-
toMap(
) → Map< String, Object?> - Throws an ArgumentError if a timeout is shorter than 1 second, which would otherwise start a new session with every event.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited