ModeChangeEvent class

A fused transport-mode change emitted by the on-device classifier.

Delivered via Tracelet.onModeChange. mode is one of still, walking, running, cycling, vehicle, or unknown.

Annotations

Constructors

ModeChangeEvent({required String mode, required double confidence, LocationTuning? appliedTuning})
Creates a new ModeChangeEvent.
const
ModeChangeEvent.fromTl(TlModeChangeEvent e)
Creates a ModeChangeEvent from the Pigeon TlModeChangeEvent.
factory

Properties

appliedTuning → LocationTuning?
The thresholds ClassifierConfig.autoTuneFromTransportMode applied for this mode, or null when auto-tuning is off or the mode carries no tuning (unknown, which restores your configured values).
final
confidence → double
0–1 confidence of the classification.
final
hashCode → int
The hash code for this object.
no setterinherited
mode → String
still | walking | running | cycling | vehicle | unknown.
final
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.
override

Operators

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