MethodChannelTrueCompass class
TrueCompassPlatform backed by a method and an event channel (Android and iOS).
- Inheritance
-
- Object
- PlatformInterface
- TrueCompassPlatform
- MethodChannelTrueCompass
Constructors
Properties
- eventChannel → EventChannel
-
Channel for sensor events.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
Channel for one-shot calls.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkAvailability(
) → Future< CompassAvailability> -
Whether the compass can be used.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rawEvents(
RawSensorConfig config) → Stream< Map< String, Object?> > -
Raw sensor events. The sensor runs only while the stream is listened to.
override
-
requestPermission(
) → Future< CompassAvailability> -
Asks the user for sensor permission where the platform needs it.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited