TraceletHostApi class

Constructors

TraceletHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
Constructor for TraceletHostApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger BinaryMessenger?
final
pigeonVar_messageChannelSuffix String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGeofence(TlGeofence geofence) Future<bool>
addGeofences(List<TlGeofence> geofences) Future<bool>
addPrivacyZone(Map<String?, Object?> zone) Future<bool>
addPrivacyZones(List<Map<String?, Object?>?> zones) Future<bool>
cancelImpact(int id) Future<bool>
Cancels a pending impact candidate (by id) — no confirmed event fires.
canScheduleExactAlarms() Future<bool>
changePace(bool isMoving) Future<bool>
clearLogs() Future<void>
clearRouteContext() Future<bool>
confirmImpact(int id) Future<bool>
Confirms a pending impact candidate (by id) as a real emergency now.
debugRunCrashModelInference(double peakG, double speedKmh, bool crashLike) Future<Map<String, Object?>>
Debug-only (#183): synthesizes one high-g accelerometer window and runs it through the SDK's real crash-detection pipeline — including the loaded ML crash model — so the model path can be verified without a physical impact. When crashLike is true the synthetic features represent a real crash (rotation + speed + deceleration); when false a benign bump the model should reject. Returns the model probability, threshold, and whether a crash candidate fired. modelRan is false when no ML model is loaded.
destroyLocation(String uuid) Future<bool>
destroyLocations() Future<bool>
destroyLog() Future<bool>
destroySyncedLocations() Future<int>
destroyTelematicsEvents() Future<bool>
emailLog(String email) Future<bool>
encryptDatabase() Future<bool>
geofenceExists(String identifier) Future<bool>
getAttestationToken() Future<Map<String?, Object?>?>
getAuditProof(String uuid) Future<Map<String?, Object?>?>
getCarbonReport(Map<String, Object?>? query) Future<Map<String, Object?>>
getCount(Map<String?, Object?>? query) Future<int>
getCurrentPosition(TlCurrentPositionOptions options) Future<TlLocation>
getDeadReckoningState() Future<Map<String?, Object?>?>
getDeviceInfo() Future<Map<String?, Object?>>
getForegroundServiceHealth() Future<Map<String?, Object?>>
getGeofence(String identifier) Future<TlGeofence?>
getGeofences() Future<List<TlGeofence?>>
getLastKnownLocation(TlCurrentPositionOptions? options) Future<TlLocation?>
getLocations(Map<String?, Object?>? query) Future<List<TlLocation?>>
getLog(Map<String?, Object?>? query) Future<String>
getLogs(int limit) Future<List<TlLogEntry?>>
getMotionPermissionStatus() Future<TlMotionAuthorizationStatus>
getNotificationPermissionStatus() Future<TlNotificationAuthorizationStatus>
getOdometer() Future<double>
getPermissionStatus() Future<TlAuthorizationStatus>
getPrivacyZones() Future<List<Object?>>
getProviderState() Future<TlProviderChangeEvent>
getSensors() Future<Map<String?, Object?>>
getSettingsHealth() Future<Map<String?, Object?>>
getState() Future<TlState>
getTelematicsEvents(int limit) Future<List<TlTelematicsRecord?>>
insertLocation(Map<String?, Object?> params) Future<String>
isDatabaseEncrypted() Future<bool>
isIgnoringBatteryOptimizations() Future<bool>
isPowerSaveMode() Future<bool>
log(String level, String message) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openExactAlarmSettings() Future<bool>
openOemSettings(String label) Future<bool>
playSound(String name) Future<bool>
ready(TlConfig config) Future<TlState>
registerHeadlessHeadersCallback(List<int?> callbackIds) Future<bool>
registerHeadlessSyncBodyBuilder(List<int?> callbackIds) Future<bool>
registerHeadlessTask(List<int?> callbackIds) Future<bool>
removeGeofence(String identifier) Future<bool>
removeGeofences() Future<bool>
removePrivacyZone(String identifier) Future<bool>
removePrivacyZones() Future<bool>
requestMotionPermission() Future<TlMotionAuthorizationStatus>
requestNotificationPermission() Future<TlNotificationAuthorizationStatus>
requestPermission() Future<TlAuthorizationStatus>
requestSettings(String action) Future<bool>
requestStateFlush() Future<void>
requestTemporaryFullAccuracy(String purpose) Future<int>
reset(TlConfig? config) Future<TlState>
setConfig(TlConfig config) Future<TlState>
setDynamicHeaders(Map<String?, String?> headers) Future<bool>
setOdometer(double value) Future<TlLocation>
setRouteContext(Map<String?, Object?> context) Future<bool>
showPowerManager() Future<bool>
showSettings(String action) Future<bool>
simulateTelematicsEvent(String eventType, double severity, double latitude, double longitude) Future<bool>
start() Future<TlState>
startBackgroundTask() Future<int>
startGeofences() Future<TlState>
startPeriodic() Future<TlState>
startSchedule() Future<TlState>
stop() Future<TlState>
stopBackgroundTask(int taskId) Future<int>
stopSchedule() Future<TlState>
stopWatchPosition(int watchId) Future<bool>
sync() Future<List<TlLocation?>>
toString() String
A string representation of this object.
inherited
updateLocationProviderOptions(TlDesiredAccuracy? desiredAccuracy, double? distanceFilter) Future<bool>
Temporarily overrides active OS-provider acquisition options.
verifyAuditTrail() Future<Map<String?, Object?>>
watchPosition(TlCurrentPositionOptions options) Future<int>

Operators

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

Constants

pigeonChannelCodec → const MessageCodec<Object?>