FrameCallbackScheduler


public interface FrameCallbackScheduler


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

Summary

Public methods

abstract boolean

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

abstract void

Callbacks on new frame arrived.

Public methods

isCurrentThread

Added in 1.1.0-beta01
abstract boolean isCurrentThread()

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
abstract void postFrameCallback(@NonNull Runnable frameCallback)

Callbacks on new frame arrived.

Parameters
@NonNull Runnable frameCallback

The runnable of new frame should be posted