public class IntentModule extends ReactContextBaseJavaModule
NativeModule.NativeMethodMETHOD_TYPE_REMOTE, METHOD_TYPE_REMOTE_ASYNC| Constructor and Description |
|---|
IntentModule(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
canOpenURL(java.lang.String url,
Callback callback)
Determine whether or not an installed app can handle a given URL.
|
java.lang.String |
getName() |
void |
openURL(java.lang.String url)
Starts a corresponding external activity for the given URL.
|
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getConstants, getMethods, initialize, onCatalystInstanceDestroy, writeConstantsFieldpublic IntentModule(ReactApplicationContext reactContext)
public java.lang.String getName()
require() this module
from javascript.public void openURL(java.lang.String url)
URL - the URL to openpublic void canOpenURL(java.lang.String url,
Callback callback)
URL - the URL to openpromise - a promise that is always resolved with a boolean argument