MethodChannelSensorManagerAndroid class

An implementation of SensorManagerAndroidPlatform that uses methodChannel channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelTriggerSensor(int sensorType) → void
getDefaultSensor(int sensorType, [bool? wakeUp]) Future<Sensor>
getDynamicSensorList(int sensorType) Future<List<Sensor>>
getPlatformVersion() Future<String?>
override
getSensorList(int sensorType) Future<List<Sensor>>
isDynamicSensorDiscoverySupported() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDynamicSensorCallback({void onDynamicSensorDisconnected(SensorEvent)?}) → void
registerListener(int sensorType, {int? interval, void onSensorChanged(SensorEvent)?, void onAccuracyChanged(Sensor, int)?}) → void
registerTriggerSensorCallback(int sensorType, {void onTrigger(TriggerEvent)?}) → void
toString() String
A string representation of this object.
inherited
unregisterDynamicSensorCallback() → void
unregisterListener(int sensorType) → void

Operators

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

Constants

eventChannelName → const String
methodChannelName → const String
The methodChannel channel used to interact with the native platform.