FrameCallbackScheduler


interface FrameCallbackScheduler


A scheduler that runs the given Runnable on the next frame.

Summary

Public functions

Boolean

Returns whether the current thread is the same as the thread that the scheduler is running on.

Unit
postFrameCallback(frameCallback: Runnable)

Callbacks on new frame arrived.

Public functions

isCurrentThread

Added in 1.1.0-beta01
fun isCurrentThread(): Boolean

Returns whether the current thread is the same as the thread that the scheduler is running on.

Returns
Boolean

true if the scheduler is running on the same thread as the current thread.

postFrameCallback

Added in 1.1.0-beta01
fun postFrameCallback(frameCallback: Runnable): Unit

Callbacks on new frame arrived.

Parameters
frameCallback: Runnable

The runnable of new frame should be posted