MapxusPositioningFlutter class

Singleton wrapper for the MapxusPositioningFlutter plugin.

Properties

events Stream<MapxusEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkSensorStatus() Future<MapxusSensorResultModel>
init(String appId, String secret) Future<MapxusMethodResponse>
isForegroundServiceRunning() Future<bool>
Returns true if the Android foreground service is currently running.
isInitialized() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<MapxusMethodResponse>
resume() Future<MapxusMethodResponse>
setBackgroundHandler(MapxusBackgroundHandler handler) Future<MapxusMethodResponse>
Registers a background handler that is called by the Android foreground service with every positioning event even when the app is fully closed.
start() Future<MapxusMethodResponse>
startForegroundService({required String appId, required String secret, String notificationTitle = 'Mapxus Positioning', String notificationContent = 'Location tracking is active'}) Future<MapxusMethodResponse>
Starts the Android foreground service so positioning continues after the app is closed. Events are delivered through the same events stream while the app is open, and through the setBackgroundHandler callback while the app is closed.
stop() Future<MapxusMethodResponse>
stopForegroundService() Future<MapxusMethodResponse>
Stops the foreground service and removes the persistent notification.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MapxusPositioningFlutter
final