MethodChannelMapxusPositioningFlutter class

The Android (and default) implementation of the plugin using Flutter’s MethodChannel and EventChannel.

This class communicates with native Android code through platform channels to handle Mapxus Positioning SDK methods.

Inheritance

Properties

events Stream<MapxusEvent>
Listens to event streams from the native side.
no setteroverride
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>
Checks the status of required sensors and returns the status code and a descriptive message.
override
init(String appId, String secret) Future<MapxusMethodResponse>
Initializes the Mapxus Positioning SDK with the given appId and secret.
override
isForegroundServiceRunning() Future<bool>
Returns true if the Android foreground service is currently running. Use this on app startup to restore UI state after the app was killed.
override
isInitialized() Future<bool>
Checks whether the Mapxus SDK has been initialized successfully.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<MapxusMethodResponse>
Pauses the positioning service temporarily.
override
resume() Future<MapxusMethodResponse>
Resumes the positioning service after being paused.
override
setBackgroundHandlerRaw({required int dispatcherHandle, required int userCallbackHandle}) Future<MapxusMethodResponse>
Stores the raw Dart callback handles on the native side so the foreground service can start a headless Flutter engine when the app is closed.
override
start() Future<MapxusMethodResponse>
Starts the Mapxus positioning service.
override
startForegroundService({required String appId, required String secret, String notificationTitle = 'Mapxus Positioning', String notificationContent = 'Location tracking is active'}) Future<MapxusMethodResponse>
Starts the Android foreground service for background positioning.
override
stop() Future<MapxusMethodResponse>
Stops the Mapxus positioning service completely.
override
stopForegroundService() Future<MapxusMethodResponse>
Stops the Android foreground service and removes the persistent notification.
override
toString() String
A string representation of this object.
inherited

Operators

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