Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.jstasks

/** Listener interface for task lifecycle events. */
public interface HeadlessJsTaskEventListener {

/**
* Called when a JS task is started, on the UI thread.
*
* @param taskId the unique identifier of this task instance
*/
public fun onHeadlessJsTaskStart(taskId: Int)

/**
* Called when a JS task finishes (i.e. when {@link
* HeadlessJsTaskSupportModule#notifyTaskFinished} is called, or when it times out), on the UI
* thread.
*/
public fun onHeadlessJsTaskFinish(taskId: Int)
}
Loading