VietmapTrackingPlugin class

Simple, focused Flutter API that wraps both native SDKs:

  • VietmapTrackingSDK — GPS tracking, history, cache management.
  • VietmapAlertBridge / VietmapSpeedAlertManager — speed-sign images, TTS alerts, and zone-network-v2 configuration.

For the full feature set (permissions, smart-battery, external GPS, etc.) keep using VietmapTrackingController from package:vietmap_tracking_plugin/vietmap_tracking_plugin.dart.

Properties

hashCode int
The hash code for this object.
no setterinherited
onLocationUpdate Stream<LocationUpdateEvent>
Real-time GPS points forwarded from the native SDK pipeline.
no setter
onSpeedSignChanged Stream<SpeedSignEvent>
Speed-sign images (PNG bytes) and limit values from the native alert SDK.
no setter
onTrackingStatus Stream<TrackingStatusEvent>
Tracking-start / tracking-stop / permission / error status events.
no setter
onTtsText Stream<String>
TTS (text-to-speech) strings emitted by the native speed-alert engine.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configureAlertAPI({required String apiKey, required String apiID, String url = 'https://drive-api.vietmap.vn/fleetwork/api/Alert/v2/mpp'}) Future<bool>
Configure the speed-alert API.
configureTracking({required String apiKey, String baseUrl = 'https://tracking.vietmap.vn', AuthMode authMode = AuthMode.header, String gpsTrackingEndpoint = '/gps-tracking', String gpsBulkEndpoint = '/gps-tracking/bulk', bool autoUpload = true}) Future<bool>
Configure the tracking SDK.
configureVehicle({required String vehicleId, int vehicleType = VehicleType.car, int seats = 5, double weight = 1500.0, int maxProvision = 0}) Future<bool>
Configure vehicle metadata used in speed-alert zone lookups.
configureZoneNetworkV2(String baseUrl) Future<bool>
Switch to the zone-network-v2 endpoint for speed-limit data lookups.
initializeTracking({required String trackingApiKey, String trackingBaseUrl = 'https://live.fleetwork.vn/api/v1'}) Future<void>
Validate the tracking API key against the server and initialize the SDK.
isAlertActive() Future<bool>
Returns true if speed-alert monitoring is currently active.
isTrackingActive() Future<bool>
Returns true if GPS tracking is currently running.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processLocation({required double lat, required double lng, required double speed, required double heading, double accuracy = 0.0, double altitude = 0.0, int? timestamp}) Future<bool>
Feed an externally sourced GPS fix into the tracking pipeline.
resetZoneNetworkV2() Future<bool>
Reset zone-network-v2 configuration back to the SDK default.
setMetadata(Map<String, dynamic> metadata) Future<void>
Attach arbitrary metadata to every GPS post under the "metadata" key.
startAlert() Future<bool>
Start speed-alert monitoring.
startTracking({bool backgroundMode = true, int intervalMs = 5000, double distanceFilter = 0.0, String? userId, String? vehicleId, String? notificationTitle, String? notificationMessage}) Future<bool>
Start GPS tracking.
stopAlert() Future<bool>
Stop speed-alert monitoring.
stopTracking() Future<bool>
Stop GPS tracking.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance VietmapTrackingPlugin
final