Java Timer Manager
This class is the native implementation for JS timer execution on Android. It schedules JS timers to be invoked on frame boundaries using ReactChoreographer.
This is used by the NativeModule TimingModule.
Constructors
Functions
A method to be used for asynchronously creating a timer. If the timer has already expired, (based on the provided jsSchedulingTime) then it will be immediately invoked.
A method to be used for synchronously creating a timer. The timer will not be invoked until the next frame, regardless of whether it has already expired (i.e. the delay is 0).
Called when a JS task finishes (i.e. when HeadlessJsTaskSupportModule.notifyTaskFinished is called, or when it times out), on the UI thread.
Called when a JS task is started, on the UI thread.
Called when host activity receives destroy event (e.g. Activity.onDestroy. Only called for the last React activity to be destroyed.
Called when host activity receives pause event (e.g. Activity.onPause. Always called for the most current activity.
Called either when the host activity receives a resume event (e.g. Activity.onResume or if the native module that implements this is initialized while the host activity is already resumed. Always called for the most current activity.