Listener interface for task lifecycle events.
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.