public class ShakePauseController
Validation that tracks significant movements and allows detection to be paused after some time passed since last significant move.
onResume,
onPause,
delayAfterMovepublic ShakePauseController(@NotNull
android.content.Context context)
Validation that tracks significant movements and allows detection to be paused after some time passed since last significant move.
context - needed for attaching to device's hardware for motion detectiononResume,
onPause,
delayAfterMovepublic long getDelayAfterMove()
Delay to wait after significant move.
public void setDelayAfterMove(long p)
Delay to wait after significant move.
public boolean isEnabled()
public void setEnabled(boolean p)
public boolean check()
public void onResume()
Call to attach to hardware listener.
public void onPause()
Call to detach when component no longer needed.