onDestroy

open fun onDestroy()

Call this method from the parent Activity/Fragment's corresponding method.

In your Activity/Fragment:


    protected void onDestroy() {
        super.onDestroy();
        if (mapControl != null) {
            mapControl.onDestroy();
            mapControl = null;
        }
    }

See also

<a href="https://developer.android.com/reference/android/app/Activity#onDestroy()">Activity.onDestroy()</a>