CoffeeMapboxLocationPermission class

Singleton class to manage location permissions in Coffee Mapbox.

Provides methods to check and request location permissions, and emits permission changes via a stream. Works for both Android and iOS platforms.

Example usage:

final permission = CoffeeMapboxLocationPermission();
permission.onPermissionChanged.listen((status) {
  print('Permission changed: $status');
});
final currentStatus = await permission.checkPermission();

Constructors

CoffeeMapboxLocationPermission()
Returns the singleton instance.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
onPermissionChanged → Stream<CoffeeMapboxLocationPermissionStatus>
Stream of permission changes.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkPermission() → Future<CoffeeMapboxLocationPermissionStatus>
Check the current location permission status.
dispose() → void
Dispose the stream controller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<CoffeeMapboxLocationPermissionStatus>
Request location permission from the user.
toString() → String
A string representation of this object.
inherited

Operators

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