ReactActivityDelegate

Delegate class for ReactActivity. You can subclass this to provide custom implementations for e.g. getReactNativeHost, if your Application class doesn't implement .

Inheritors

Constructors

Link copied to clipboard
constructor(@Nullable activity: Activity, @Nullable mainComponentName: String)
Prefer using ReactActivity when possible, as it hooks up all Activity lifecycle methods by default.
constructor(@Nullable activity: ReactActivity, @Nullable mainComponentName: String)

Functions

Link copied to clipboard
Get the current ReactContext from ReactHost or ReactInstanceManager Do not store a reference to this, if the React instance is reloaded or destroyed, this context will no longer be valid.
Link copied to clipboard
Link copied to clipboard
Get the ReactHost used by this app with Bridgeless enabled.
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreate(savedInstanceState: Bundle)
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onNewIntent(intent: Intent): Boolean
Link copied to clipboard
open fun onPause()
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)
Link copied to clipboard
open fun onResume()
Link copied to clipboard
open fun onUserLeaveHint()
Link copied to clipboard
open fun onWindowFocusChanged(hasFocus: Boolean)
Link copied to clipboard
open fun requestPermissions(permissions: Array<String>, requestCode: Int, listener: PermissionListener)
Link copied to clipboard
open fun setReactRootView(reactRootView: ReactRootView)
Link copied to clipboard
open fun setReactSurface(reactSurface: ReactSurface)