Example usage for com.facebook.react ReactInstanceManager onHostDestroy

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

Introduction

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

Prototype

@ThreadConfined(UI)
public void onHostDestroy(Activity activity) 

Source Link

Document

Call this from Activity#onDestroy() .

Usage

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

License:Apache License

/**
 * {@link Activity} lifecycle method which should be called from
 * {@code Activity#onDestroy} so we can do the required internal
 * processing./*ww w . j a  v  a2 s . c o  m*/
 *
 * @param activity {@code Activity} being destroyed.
 */
public static void onHostDestroy(Activity activity) {
    ReactInstanceManager reactInstanceManager = ReactInstanceManagerHolder.getReactInstanceManager();

    if (reactInstanceManager != null) {
        reactInstanceManager.onHostDestroy(activity);
    }
}