Example usage for com.facebook.react ReactInstanceManager onActivityResult

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

Introduction

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

Prototype

@ThreadConfined(UI)
    public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) 

Source Link

Usage

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

License:Apache License

/**
 * {@link Activity} lifecycle method which should be called from
 * {@code Activity#onActivityResult} so we are notified about results of external intents
 * started/finished.//from w ww. j  a  v  a2 s .co m
 *
 * @param activity {@code Activity} activity from where the result comes from.
 * @param requestCode {@code int} code of the request.
 * @param resultCode {@code int} code of the result.
 * @param data {@code Intent} the intent of the activity.
 */
public static void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
    ReactInstanceManager reactInstanceManager = ReactInstanceManagerHolder.getReactInstanceManager();

    if (reactInstanceManager != null) {
        reactInstanceManager.onActivityResult(activity, requestCode, resultCode, data);
    }
}