TrackivaPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • TrackivaPlatform
Implementers

Constructors

TrackivaPlatform()

Properties

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

Methods

canDrawOverlays() Future<bool>
Check if overlay permission is granted (Android only)
clearTrackingData() Future<bool>
getCurrentLocation() Future<LocationData?>
getLocationAccuracy() Future<LocationAccuracy>
getMqttStatus() Future<Map<String, dynamic>>
getPlatformVersion() Future<String?>
getTrackingStats() Future<TrackingStats>
initialize({required String notificationTitle, required String notificationText, required int interval, required int fastestInterval, required double distanceFilter, bool enableBackgroundMode = true, bool enableHighAccuracy = true, bool enableBatteryOptimization = false, String? notificationIcon, String? notificationColor, String? chatHeadIcon, bool enableChatHead = false, bool enableLogging = true, bool showLocationNotifications = false, String? locationNotificationTitle, String? locationNotificationBody}) Future<void>
isLocationServiceEnabled() Future<bool>
isTracking() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestOverlayPermission() Future<bool>
Request overlay permission (Android only) Opens system settings for the user to grant permission
setGraphQLConfig({required String endpoint, required String mutation, required Map<String, String> headers}) Future<void>
Set GraphQL configuration
setHttpConfig({required String endpoint, required Map<String, String> headers, required String method}) Future<void>
Set HTTP configuration
setLocationAccuracy(LocationAccuracy accuracy) Future<bool>
setMqttConfigAndDetails({required String broker, required int port, String? username, String? password, required String topic, required Map<String, dynamic> payload}) Future<void>
Set MQTT configuration with flexible payload
startChatHeadService() Future<bool>
Manually start chat head service (Android only) Useful after overlay permission is granted
startTracking() Future<void>
stopTracking() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance TrackivaPlatform
getter/setter pair