ULocationChannel class abstract final

Engine behind ULocation; use ULocation instead.

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

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 Methods

addGeofence(UGeofence fence) → Future<bool>
Starts watching fence. Native on Android, iOS, macOS and Windows (works in the background); elsewhere evaluated in Dart while the app runs.
clearGeofences() → Future<void>
current({ULocationAccuracy accuracy = ULocationAccuracy.high, Duration timeout = const Duration(seconds: 20), Duration? maxAge, bool askPermission = true}) → Future<ULocationResult>
ensureReady({bool always = false}) → Future<ULocationError?>
Makes sure location can be read, asking once if needed. Null when ready, else why not.
geocode(String address, {String? locale}) → Future<List<UPlacemark>>
Places matching an address (Android, iOS, macOS). Empty when unavailable.
geofenceEvents() → Stream<UGeofenceEvent>
Enter / exit events, including ones that happened while the app was not running (delivered on listen).
geofences() → Future<List<UGeofence>>
heading() → Stream<UHeading>
isGeocodingAvailable() → Future<bool>
lastKnown() → Future<UPosition?>
permission() → Future<ULocationPermission>
positions([ULocationSettings settings = const ULocationSettings()]) → Stream<UPosition>
Live positions. One native stream at a time; later listeners share it.
removeGeofence(String id) → Future<void>
requestPermission({bool always = false}) → Future<ULocationPermission>
Asks for location access; always asks for background access too (after foreground is granted).
requestPrecise(String purposeKey) → Future<bool>
iOS 14+: asks to switch approximate location to precise for this session.
reverseGeocode(double latitude, double longitude, {String? locale}) → Future<List<UPlacemark>>
Addresses at a point (Android, iOS, macOS). Empty when unavailable.
visits() → Stream<UVisit>
Places the user arrived at / left (iOS; empty elsewhere).