Journey class

Constructors

Journey.new(RestApi restApi, Persistence persistence, Timeline timeline, IdGenerator idGenerator)

Properties

currentSession ↔ Session?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idGenerator → IdGenerator
final
persistence → Persistence
final
restApi → RestApi
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeline → Timeline
final

Methods

initialize(String accountId, String appId, String version, bool isRelease) Future<void>
Initializes new session. accountId is your account id appId is your application id version is the application version (e.g. 1.2.3) Use packageInfo.version to access version. isRelease is to separate debug sessions from release sessions. Use kReleaseMode to access mode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reportEvent(String eventName, {bool isCollapsible = false, bool isError = false, bool isCrash = false}) Future<void>
Registers the event in the current session.
reportStageTransition(int stage, String stageName) Future<void>
Reports the stage transition, e.g. 'engagement', 'checkout', 'payment'. Stage transitions are used to build funnels.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

instance() Journey