Methods Summary |
---|
public android.webkit.WebView | getWebView()Gets the WebView.
return mIsWebViewAvailable ? mWebView : null;
|
public android.view.View | onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)Called to instantiate the view. Creates and returns the WebView.
if (mWebView != null) {
mWebView.destroy();
}
mWebView = new WebView(getActivity());
mIsWebViewAvailable = true;
return mWebView;
|
public void | onDestroy()Called when the fragment is no longer in use. Destroys the internal state of the WebView.
if (mWebView != null) {
mWebView.destroy();
mWebView = null;
}
super.onDestroy();
|
public void | onDestroyView()Called when the WebView has been detached from the fragment.
The WebView is no longer available after this time.
mIsWebViewAvailable = false;
super.onDestroyView();
|
public void | onPause()Called when the fragment is visible to the user and actively running. Resumes the WebView.
super.onPause();
mWebView.onPause();
|
public void | onResume()Called when the fragment is no longer resumed. Pauses the WebView.
mWebView.onResume();
super.onResume();
|