Skip to content

Commit f5506dc

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Migrate HeadlessJsTaskEventListener to Kotlin (#48103)
Summary: Migrate `HeadlessJsTaskEventListener` to Kotlin ## Changelog: [INTERNAL] - Migrate `HeadlessJsTaskEventListener` to Kotlin Pull Request resolved: #48103 Test Plan: ```bash yarn test-android ``` Reviewed By: javache Differential Revision: D66814483 Pulled By: cortinico fbshipit-source-id: 5aef4ce020f97164845e3e0d53a107c7e407a6aa
1 parent 4560fc0 commit f5506dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.facebook.react.jstasks;
8+
package com.facebook.react.jstasks
99

1010
/** Listener interface for task lifecycle events. */
1111
public interface HeadlessJsTaskEventListener {
@@ -15,12 +15,12 @@ public interface HeadlessJsTaskEventListener {
1515
*
1616
* @param taskId the unique identifier of this task instance
1717
*/
18-
void onHeadlessJsTaskStart(int taskId);
18+
public fun onHeadlessJsTaskStart(taskId: Int)
1919

2020
/**
2121
* Called when a JS task finishes (i.e. when {@link
2222
* HeadlessJsTaskSupportModule#notifyTaskFinished} is called, or when it times out), on the UI
2323
* thread.
2424
*/
25-
void onHeadlessJsTaskFinish(int taskId);
25+
public fun onHeadlessJsTaskFinish(taskId: Int)
2626
}

0 commit comments

Comments
 (0)