ActivityRecognition class

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

ActivityRecognition()

Implemented types

Constructors

ActivityRecognition()
Get the ActivityRecognition singleton.
factory

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 = true}) Stream<ActivityEvent>
Requests continuous ActivityEvent updates.
dispose() → void
Dispose resources
isAvailable() Future<bool>
Checks if activity recognition is available on this device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onActivityUpdate(ActivityEventData event) → void
Implementation of ActivityRecognitionFlutterApi Called by the native side when a new activity is detected
override
stopActivityUpdates() Future<void>
Stops activity recognition updates
toString() String
A string representation of this object.
inherited

Operators

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