public class DeviceEventManagerModule extends ReactContextBaseJavaModule
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeviceEventManagerModule.RCTDeviceEventEmitter |
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
DeviceEventManagerModule(ReactApplicationContext reactContext,
DefaultHardwareBackBtnHandler backBtnHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
emitHardwareBackPressed()
Sends an event to the JS instance that the hardware back has been pressed.
|
void |
emitNewIntentReceived(android.net.Uri uri)
Sends an event to the JS instance that a new intent was received.
|
java.lang.String |
getName() |
void |
invokeDefaultBackPressHandler()
Invokes the default back handler for the host of this catalyst instance.
|
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String NAME
public DeviceEventManagerModule(ReactApplicationContext reactContext, DefaultHardwareBackBtnHandler backBtnHandler)
public void emitHardwareBackPressed()
public void emitNewIntentReceived(android.net.Uri uri)
public void invokeDefaultBackPressHandler()
public java.lang.String getName()
require() this module
from javascript.