ShakePauseController

Validation that tracks significant movements and allows detection to be paused after some time passed since last significant move.

Parameters

context

needed for attaching to device's hardware for motion detection

See also

call to attach to hardware listener

call to detach when component no longer needed

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard

Delay to wait after significant move.

Link copied to clipboard

Functions

Link copied to clipboard
fun check(): Boolean
Link copied to clipboard
fun onPause()

Call to detach when component no longer needed.

Link copied to clipboard
fun onResume()

Call to attach to hardware listener.