Sλ
Size: a a a
Sλ
AH
AH
СВ
VM
override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
startTimer()
return super.dispatchTouchEvent(ev)
}val handler = Handler(Looper.getMainLooper())
val timerDuration = TimeUnit.MINUTES.toMillis(1)
val timerAction = Runnable { viewContract.lockScreen() }
fun startTimer() = handler.postDelayed(timerAction, timerDuration)
postDelayed.
QH
LK
VM
override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
startTimer()
return super.dispatchTouchEvent(ev)
}val handler = Handler(Looper.getMainLooper())
val timerDuration = TimeUnit.MINUTES.toMillis(1)
val timerAction = Runnable { viewContract.lockScreen() }
fun startTimer() = handler.postDelayed(timerAction, timerDuration)
postDelayedfun cancelTimer() = handler.removeCallbacks(timerAction)
AL
Kd
QH
v

v
v
v
VP
SM
VP
VM
override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
startTimer()
return super.dispatchTouchEvent(ev)
}val handler = Handler(Looper.getMainLooper())
val timerDuration = TimeUnit.MINUTES.toMillis(1)
val timerAction = Runnable { viewContract.lockScreen() }
fun startTimer() = handler.postDelayed(timerAction, timerDuration)
postDelayed