MethodChannelLiveLocationTrackerPlus class

An implementation of LiveLocationTrackerPlusPlatform that uses method channels and event channels for native communication.

Inheritance

Properties

geofenceEventChannel EventChannel
Event channel for streaming geofence events.
final
hashCode int
The hash code for this object.
no setterinherited
locationEventChannel EventChannel
Event channel for streaming location updates.
final
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGeofence(GeofenceRegion region) Future<bool>
Adds a geofence region to monitor.
override
checkPermission() Future<LocationPermissionStatus>
Checks the current location permission status.
override
disableFirebaseSync() Future<bool>
Disables Firebase sync.
override
enableFirebaseSync(FirebaseConfig config) Future<bool>
Enables Firebase sync for location data.
override
getActiveGeofences() Future<List<GeofenceRegion>>
Returns all currently active geofence regions.
override
getCurrentLocation({LocationAccuracy accuracy = LocationAccuracy.high}) Future<LocationData>
Returns the current location as a single shot.
override
getGeofenceEventStream() Stream<GeofenceEvent>
Returns a stream of geofence events (enter/exit/dwell).
override
getLocationStream() Stream<LocationData>
Returns a stream of location updates.
override
getPlatformVersion() Future<String?>
Returns the current platform version string.
override
isTracking() Future<bool>
Returns whether tracking is currently active.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppSettings() Future<bool>
Opens the app's settings page (for permission changes).
override
openLocationSettings() Future<bool>
Opens the device's location settings page.
override
removeGeofence(String id) Future<bool>
Removes a previously registered geofence by its ID.
override
requestBackgroundPermission() Future<LocationPermissionStatus>
Requests background location permission (Android 10+, iOS Always).
override
requestPermission() Future<LocationPermissionStatus>
Requests location permission from the user.
override
setTrackingMode(TrackingMode mode) Future<bool>
Sets the tracking mode (affects battery usage).
override
startTracking(TrackingConfig config) Future<bool>
Starts background location tracking with the given configuration.
override
stopTracking() Future<bool>
Stops background location tracking.
override
toString() String
A string representation of this object.
inherited

Operators

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