Timer

expect class Timer : Closable

Calls a function periodically.

actual class Timer : Closable
actual class Timer : Closable

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Functions

close
Link copied to clipboard
abstract fun close()
open override fun close()
open override fun close()
Link copied to clipboard
expect fun pause()

Pauses the timer.

actual fun pause()
actual fun pause()
Link copied to clipboard
expect fun ready()

Makes the timer run on the next call of handler.

actual fun ready()
actual fun ready()
Link copied to clipboard
expect fun reset()

Resets the period of a timer. It will be called again after the defined period of milliseconds has elapsed.

actual fun reset()
actual fun reset()
Link copied to clipboard
expect fun resume()

Resumes the timer.

actual fun resume()
actual fun resume()
Link copied to clipboard
expect fun setEnable(enable: Boolean)

Changes the timer's enable state.

actual fun setEnable(enable: Boolean)
actual fun setEnable(enable: Boolean)

Properties

lvTimerPtr
Link copied to clipboard
val lvTimerPtr: CPointer<lv_timer_t>?
val lvTimerPtr: CPointer<lv_timer_t>?
Link copied to clipboard
expect val next: Timer

Gets the next timer.

actual val next: Timer
actual val next: Timer
Link copied to clipboard
expect var period: UInt

Period in milli seconds.

actual var period: UInt
actual var period: UInt
Link copied to clipboard
expect var repeatCount: Int

The number of times to repeat the timer.

actual var repeatCount: Int
actual var repeatCount: Int