ActivityRecognitionHostApi class

Host API - Methods implemented on the native side (Android/iOS) and called from Flutter

Constructors

ActivityRecognitionHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
Constructor for ActivityRecognitionHostApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger BinaryMessenger?
final
pigeonVar_messageChannelSuffix String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isActivityRecognitionAvailable() Future<bool>
Checks if activity recognition is available on the device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startActivityUpdates(ActivityRecognitionConfig config) Future<void>
Starts activity recognition with the given configuration Returns null on success, throws FlutterError on failure
stopActivityUpdates() Future<void>
Stops activity recognition
toString() String
A string representation of this object.
inherited

Operators

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

Constants

pigeonChannelCodec → const MessageCodec<Object?>