ActivityRecognition class

Main entry to the activity recognition API. Use as a singleton like

ActivityRecognition()

Constructors

ActivityRecognition()
Get the ActivityRecognition singleton.
factory
ActivityRecognition.forTesting()
Creates an isolated instance for tests so the singleton's cached stream does not leak across test cases.

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

activityStream({bool runForegroundService = false}) → Stream<ActivityEvent>
Requests continuous ActivityEvent updates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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