Example usage for com.facebook.react ReactInstanceManager onNewIntent

List of usage examples for com.facebook.react ReactInstanceManager onNewIntent

Introduction

In this page you can find the example usage for com.facebook.react ReactInstanceManager onNewIntent.

Prototype

@ThreadConfined(UI)
public void onNewIntent(Intent intent) 

Source Link

Document

This method will give JS the opportunity to receive intents via Linking.

Usage

From source file:org.jitsi.meet.sdk.JitsiMeetActivityDelegate.java

License:Apache License

/**
 * {@link Activity} lifecycle method which should be called from
 * {@code Activity#onNewIntent} so we can do the required internal
 * processing. Note that this is only needed if the activity's "launchMode"
 * was set to "singleTask". This is required for deep linking to work once
 * the application is already running./*from  ww w . j a  v  a2 s  .  c om*/
 *
 * @param intent {@code Intent} instance which was received.
 */
public static void onNewIntent(Intent intent) {
    ReactInstanceManager reactInstanceManager = ReactInstanceManagerHolder.getReactInstanceManager();

    if (reactInstanceManager != null) {
        reactInstanceManager.onNewIntent(intent);
    }
}