HandlerTimer

class HandlerTimer

使用 Handler 实现一个 Timer 定时器

Constructors

HandlerTimer
Link copied to clipboard
fun HandlerTimer()

Types

Companion
Link copied to clipboard
object Companion

Functions

cancel
Link copied to clipboard
fun cancel()
取消定时器任务
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
removePending
Link copied to clipboard
private fun removePending()
scheduleAtFixedRate
Link copied to clipboard
fun scheduleAtFixedRate(task: Runnable?, intervalInMills: Long?)
以固定的频率执行任务
fun scheduleAtFixedRate(intervalInMills: Long?, task: () -> Unit? = null)
以固定的频率执行任务
submitFixedRateTask
Link copied to clipboard
private fun submitFixedRateTask(fixedRateTask: FixedRateTask)
toString
Link copied to clipboard
open fun toString(): String

Properties

mCanceled
Link copied to clipboard
private var mCanceled: Boolean = false
mHandler
Link copied to clipboard
private val mHandler: Handler