FlutterQiblah class

FlutterQiblah is a singleton class that provides assess to compass events, check for sensor support in Android Get current location Get Qiblah direction

Constructors

FlutterQiblah()
factory

Properties

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

Methods

dispose() → void
Close compass stream, and set Qiblah stream to null
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

Static Properties

qiblahStream Stream<QiblahDirection>
Provides a stream of Map with current compass and Qiblah direction {"qiblah": QIBLAH, "direction": DIRECTION} Direction varies from 0-360, 0 being north. Qiblah varies from 0-360, offset from direction(North)
no setter

Static Methods

androidDeviceSensorSupport() Future<bool?>
Check Android device sensor support
checkLocationStatus() Future<LocationStatus>
get location status: GPS enabled and the permission status with GeolocationStatus
requestPermissions() Future<LocationPermission>
Request Location permission, return GeolocationStatus object