CompassAvailability enum
Whether and how the compass can be used on this device.
Values
- available → const CompassAvailability
-
Sensors are present and permitted.
- noSensor → const CompassAvailability
-
The device has no usable magnetometer / orientation sensor.
- permissionRequired → const CompassAvailability
-
The sensor exists but the user must grant permission first (iOS Safari on the web). Call
TrueCompass.requestPermissionfrom a tap handler. - permissionDenied → const CompassAvailability
-
The user declined the sensor permission.
- insecureContext → const CompassAvailability
-
The web page is not served over HTTPS, so browsers hide the sensors.
- unsupported → const CompassAvailability
-
The current platform has no implementation (desktop).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CompassAvailability> - A constant List of the values in this enum, in order of their declaration.