public class DeviceEventManagerModule extends NativeDeviceEventManagerSpec
| 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, getReactApplicationContext, getReactApplicationContextIfActiveOrWarncanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidatepublic 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()
invokeDefaultBackPressHandler in class NativeDeviceEventManagerSpecpublic java.lang.String getName()
require() this module
from javascript.