IShakeAutoSnappingPredicate

Validation that tracks significant movements and allows snap only after some time passed since last significant move.

Parameters

context

needed for attaching to device's hardware for motion detection

moveCallback

here can reside some additional logic to perform when move detected

See also

call to attach to hardware listener

call to detach when component no longer needed

ShakeAutoSnappingPredicate.Companion.DELAY_AFTER_MOVE_MS

Inheritors

Properties

Link copied to clipboard
abstract var isEnabled: Boolean
Link copied to clipboard
abstract var moveCallback: () -> Unit?

Functions

Link copied to clipboard
abstract fun onPause()
Link copied to clipboard
abstract fun onResume()