MobilityFeatures class
Main entry for configuring and listening for mobility features.
Used as a singleton MobilityFactory()
.
Constructors
- MobilityFeatures.new()
-
Public getter for the Singleton instance
factory
Properties
-
contextStream
→ Stream<
MobilityContext> -
no setter
- debug ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- placeRadius ← dynamic
-
Configure the stop-radius for the place algorithm
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopDuration ← Duration
-
Configure the stop-duration for the stop algorithm
no getter
- stopRadius ← double
-
Configure the stop-radius for the stop algorithm
no getter
Methods
-
loadSamples(
) → Future< List< LocationSample> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveSamples(
List< LocationSample> samples) → Future<void> -
startListening(
Stream< LocationSample> stream) → Future - Listen to a Stream of LocationSample. The subscription will be stored as a StreamSubscription which may be cancelled later.
-
stopListening(
) → Future - Cancel the StreamSubscription and stop listening.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
uniqueElements(
List< _Timestamped> elements) → List<_Timestamped>