Skip to content

Instantly share code, notes, and snippets.

@jaozinfs
Created September 22, 2020 14:16
Show Gist options
  • Save jaozinfs/7f859796f6b364580c9f4e866c8ea444 to your computer and use it in GitHub Desktop.
Save jaozinfs/7f859796f6b364580c9f4e866c8ea444 to your computer and use it in GitHub Desktop.
Código que executa um temporizador periodico
val timer: TimerTask = object : TimerTask() {
override fun run() {
Handler().post {
//change current page
}
}
}
Timer().schedule(timer, DEFAULT_DELAY, DEFAULT_PERIOD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment