diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.kt similarity index 70% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.kt index 1d5fb949b9e5c9..bf99e311c71a7e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.kt @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.internal; +package com.facebook.react.internal public interface ChoreographerProvider { /** @@ -13,13 +13,12 @@ public interface ChoreographerProvider { * android.view.Choreographer or a mock one for testing purposes, or override built-in * android.view.Choreographer's behaviors. */ - interface Choreographer { - + public interface Choreographer { /** Posts a frame callback to run on the next frame. */ - void postFrameCallback(android.view.Choreographer.FrameCallback callback); + public fun postFrameCallback(callback: android.view.Choreographer.FrameCallback) /** Removes a previously posted frame callback. */ - void removeFrameCallback(android.view.Choreographer.FrameCallback callback); + public fun removeFrameCallback(callback: android.view.Choreographer.FrameCallback) } /** @@ -27,5 +26,5 @@ interface Choreographer { * * @return An instance of Choreographer. */ - Choreographer getChoreographer(); + public fun getChoreographer(): Choreographer }