ActivityChangeEvent class

Event object provided to BackgroundGeolocation.onActivityChange.

Example

BackgroundGeolocation.onActivityChange((ActivityChangeEvent event) {
  print('[activitychange] ${event.activity}, ${event.confidence}');
});

Constructors

ActivityChangeEvent(String activity, int confidence)

Properties

activity String
The reported device motion activity.
final
confidence int
Confidence of the reported device motion activity in %.
final
hashCode int
The hash code for this object.
no setterinherited
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
toMap() Map<String, dynamic>
Convert object to Map.
toString() String
String representation of object.
override

Operators

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