VietmapAlertPlatform class abstract

The platform interface all mapzone_flutter_alert_plugin backends implement.

Inheritance
  • Object
  • PlatformInterface
  • VietmapAlertPlatform

Constructors

VietmapAlertPlatform()

Properties

hashCode int
The hash code for this object.
no setterinherited
onAlert Stream<AlertEvent>
Speed-limit / next-sign / camera / toll signs, distances and speed status.
no setter
onLocation Stream<AlertLocation>
Native GPS fixes (Approach A).
no setter
onReady Stream<ReadyEvent>
Engine-ready notifications after zone data loads.
no setter
onResult Stream<AlertResult>
Success / error notifications from the engine.
no setter
onVoice Stream<VoiceEvent>
Voice clips (WAV bytes + trigger + priority).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configureVehicle({required VehicleType vehicleType, required int seats, required int weight}) Future<void>
Re-create the engine with a new vehicle profile (type / seats / weight).
getLinkCoords(int linkId) Future<List<List<double>>?>
Look up the polyline of a matched link as a list of [lat, lng] pairs. Returns null when unavailable. Android only — always null on iOS.
getPlatformVersion() Future<String?>
hasLocationPermissions() Future<bool>
initialize(AlertConfig config) Future<void>
Create and configure the native ZoneNetworkManager alert engine.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAppBackground() Future<void>
onAppForeground() Future<void>
processExternalLocation({required double lat, required double lng, required double bearing, required double speedKmh, double accuracy = 0}) Future<void>
Feed an externally-sourced (e.g. navigation-snapped) GPS frame into the engine (Approach B). Runs updateLocation + processGps natively.
requestLocationPermissions() Future<bool>
reset() Future<void>
Reset engine state and free native memory (call before disposing).
setMutedAlertTypes(List<VoiceAlertType> types) Future<void>
Mute the given voice-alert categories (empty list re-enables all). Muting affects voice only — the on-screen sign still shows.
start() Future<void>
Start native GPS capture and begin feeding the engine (Approach A).
stop() Future<void>
Stop native GPS capture. The engine state is preserved (call reset to free native memory).
toString() String
A string representation of this object.
inherited
updateZoneLocation(double lat, double lng) Future<void>
Lightweight zone-cache warm-up: refreshes the zone data around (lat, lng) without running map-matching. Maps to the native 2-argument updateLocation(lat, lng).

Operators

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

Static Properties

instance VietmapAlertPlatform
getter/setter pair