public class ReactDelegate
extends java.lang.Object
Activity
or a Fragment
.Constructor and Description |
---|
ReactDelegate(android.app.Activity activity,
ReactNativeHost reactNativeHost,
java.lang.String appKey,
android.os.Bundle launchOptions) |
Modifier and Type | Method and Description |
---|---|
protected ReactRootView |
createRootView() |
ReactInstanceManager |
getReactInstanceManager() |
ReactRootView |
getReactRootView() |
void |
loadApp() |
void |
loadApp(java.lang.String appKey) |
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data,
boolean shouldForwardToReactInstance) |
boolean |
onBackPressed() |
void |
onHostDestroy() |
void |
onHostPause() |
void |
onHostResume() |
boolean |
shouldShowDevMenuOrReload(int keyCode,
android.view.KeyEvent event)
Handles delegating the
Activity.onKeyUp(int, KeyEvent) method to determine whether the
application should show the developer menu or should reload the React Application. |
public ReactDelegate(android.app.Activity activity, ReactNativeHost reactNativeHost, java.lang.String appKey, android.os.Bundle launchOptions)
public void onHostResume()
public void onHostPause()
public void onHostDestroy()
public boolean onBackPressed()
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data, boolean shouldForwardToReactInstance)
public void loadApp()
public void loadApp(java.lang.String appKey)
public ReactRootView getReactRootView()
protected ReactRootView createRootView()
public boolean shouldShowDevMenuOrReload(int keyCode, android.view.KeyEvent event)
Activity.onKeyUp(int, KeyEvent)
method to determine whether the
application should show the developer menu or should reload the React Application.public ReactInstanceManager getReactInstanceManager()