userExists
and isUserLinked
functions that are accessible without having to initialize the SDK.setAppSessionDataCollectionEnabled(enabled)
isAppSessionDataCollectionEnabled()
linkUser
function that supports linking a user following the existing user-linking flow.linkUserWithAuthCode
function that supports linking a user following the new authentication-code flow.addSdkStatusUpdateListener
function that supports registering listeners to get notified of SDK status updates without having to manually register a listener to the corresponding native device event.addTripTimeoutListener
function that supports registering listeners to get notified of SDK trip timeouts without having to manually register a listener to the corresponding native device event.addSdkUserActivityUpdateListener
function that supports registering listeners to get notified of SDK user activity updates without having to manually register a listener to the corresponding native device event.addVehicleCrashEventListener
function that supports registering listeners to get notified of SDK vehicle crash events without having to manually register a listener to the corresponding native device event.getUserAccessToken
to requestUserAccessToken
reset
function from boolean
to ResetResult
addUserMetadataField
, addUserMetadataFields
, removeUserMetadataField
, disableBatteryOptimization
, listenUserActivityUpdates
, startTrip
, stopTrip
, submitDetections
, updateSdkNotification
from Promise<boolean>
to Promise<void>
.listenVehicleCrashEvents
, invokeDummyVehicleCrash
, isVehicleCrashDetectionSupported
functions to a separate crash-detection
module.init(appId, secret, baseURL, shouldStart)
initWithUserLinkingEnabled(appId, secret, baseURL, shouldStart)
start()
startWithStopDate(stopEpochTimeMs)
stop()
isNativeInitializationEnabled()
enableNativeInitialization()
disableNativeInitialization()
isThirdPartyLinked()
getValueForKey(key, defaultValue)
setValueForKey(key, value)
userLinkCallback(success)
listenUserActivityUpdates()
listenTripTimeout()