STWImmobilityDetectionApi

object STWImmobilityDetectionApi

Functions

Link copied to clipboard
fun cancelImmobilityDetection(context: Context)

This method Called to cancel the detection of user mobile immobility: the current alarm will be canceled then the Immobility Detection Listener will be start

Link copied to clipboard
fun registerPreAlarmTimerObserver(smartMSTimerObserver: SmartMSTimerObserver)

Use this method to listen for the ManDown PreAlarm timer

Link copied to clipboard
fun registerToImmobilityEvent(immobilityDetectorListener: ImmobilityDetectorListener)

This method Called to register To the Immobility Event

Link copied to clipboard
fun startImmobilityDetection(    context: Context,     sensitivity: Double,     periodToTriggerAlarm: Long,     periodPreAlarm: Long)

This method Called to detect if a Mobile User in distress (not moving due to sickness, attack, or other reasons.)

Link copied to clipboard
fun stopImmobilityDetection(context: Context)

This method Called to stop the detection of user mobile immobility: and the current alarm if exist.

Link copied to clipboard
fun unregisterPreAlarmTimerObserver(smartMSTimerObserver: SmartMSTimerObserver)

Use this method to remove the previously listener instance callback

Link copied to clipboard
fun unregisterToImmobilityEvent(immobilityDetectorListener: ImmobilityDetectorListener)

This method Called to unregister from the Immobility Event