Compartir a través de


WebView.SaveState(Bundle) Method

Definition

Saves the state of this WebView used in android.app.Activity#onSaveInstanceState.

[Android.Runtime.Register("saveState", "(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;", "GetSaveState_Landroid_os_Bundle_Handler")]
public virtual Android.Webkit.WebBackForwardList? SaveState (Android.OS.Bundle outState);
[<Android.Runtime.Register("saveState", "(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;", "GetSaveState_Landroid_os_Bundle_Handler")>]
abstract member SaveState : Android.OS.Bundle -> Android.Webkit.WebBackForwardList
override this.SaveState : Android.OS.Bundle -> Android.Webkit.WebBackForwardList

Parameters

outState
Bundle

the Bundle to store this WebView's state

Returns

the same copy of the back/forward list used to save the state, null if the method fails.

Attributes

Remarks

Saves the state of this WebView used in android.app.Activity#onSaveInstanceState. Please note that this method no longer stores the display data for this WebView. The previous behavior could potentially leak files if #restoreState was never called.

Java documentation for android.webkit.WebView.saveState(android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to