STWImmobility Detection Api
Functions
Link copied to clipboard
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)
Content copied to clipboard
Use this method to listen for the ManDown PreAlarm timer
Link copied to clipboard
fun registerToImmobilityEvent(immobilityDetectorListener: ImmobilityDetectorListener)
Content copied to clipboard
This method Called to register To the Immobility Event
Link copied to clipboard
fun startImmobilityDetection( context: Context, sensitivity: Double, periodToTriggerAlarm: Long, periodPreAlarm: Long)
Content copied to clipboard
This method Called to detect if a Mobile User in distress (not moving due to sickness, attack, or other reasons.)
Link copied to clipboard
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)
Content copied to clipboard
Use this method to remove the previously listener instance callback
Link copied to clipboard
fun unregisterToImmobilityEvent(immobilityDetectorListener: ImmobilityDetectorListener)
Content copied to clipboard
This method Called to unregister from the Immobility Event