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 |
postFrameCallback(@NonNull Runnable frameCallback)Callbacks on new frame arrived. |
Public methods
isCurrentThread
Added in 1.1.0
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. |