-
public class ReactDelegate
A delegate for handling React Application support. This delegate is unaware whether it is used in an Activity or a android.app.Fragment.
-
-
Constructor Summary
Constructors Constructor Description ReactDelegate(Activity activity, ReactNativeHost reactNativeHost, String appKey, Bundle launchOptions)
-
Method Summary
Modifier and Type Method Description void
onHostResume()
void
onHostPause()
void
onHostDestroy()
boolean
onBackPressed()
void
onActivityResult(int requestCode, int resultCode, Intent data, boolean shouldForwardToReactInstance)
void
loadApp()
void
loadApp(String appKey)
ReactRootView
getReactRootView()
boolean
shouldShowDevMenuOrReload(int keyCode, KeyEvent event)
Handles delegating the onKeyUp method to determine whether theapplication should show the developer menu or should reload the React Application. ReactInstanceManager
getReactInstanceManager()
-
-
Constructor Detail
-
ReactDelegate
ReactDelegate(Activity activity, ReactNativeHost reactNativeHost, String appKey, Bundle launchOptions)
-
-
Method Detail
-
onHostResume
void onHostResume()
-
onHostPause
void onHostPause()
-
onHostDestroy
void onHostDestroy()
-
onBackPressed
boolean onBackPressed()
-
onActivityResult
void onActivityResult(int requestCode, int resultCode, Intent data, boolean shouldForwardToReactInstance)
-
loadApp
void loadApp()
-
getReactRootView
ReactRootView getReactRootView()
-
shouldShowDevMenuOrReload
boolean shouldShowDevMenuOrReload(int keyCode, KeyEvent event)
Handles delegating the onKeyUp method to determine whether theapplication should show the developer menu or should reload the React Application.
-
getReactInstanceManager
ReactInstanceManager getReactInstanceManager()
-
-
-
-