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.
|
void |
getInitialURL(Callback callback)
Return the URL the activity was started with
|
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 getInitialURL(Callback callback)
callback - a callback which is called with the initial URLpublic void openURL(java.lang.String url)
url - the URL to openpublic void canOpenURL(java.lang.String url,
Callback callback)
url - the URL to opencallback - a callback that is always called with a boolean argument