WebView.RestoreState(Bundle) Method

Definition

Restores the state of this WebView from the given Bundle.

[Android.Runtime.Register("restoreState", "(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;", "GetRestoreState_Landroid_os_Bundle_Handler")]
public virtual Android.Webkit.WebBackForwardList? RestoreState (Android.OS.Bundle inState);
[<Android.Runtime.Register("restoreState", "(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;", "GetRestoreState_Landroid_os_Bundle_Handler")>]
abstract member RestoreState : Android.OS.Bundle -> Android.Webkit.WebBackForwardList
override this.RestoreState : Android.OS.Bundle -> Android.Webkit.WebBackForwardList

Parameters

inState
Bundle

the incoming Bundle of state

Returns

the restored back/forward list or null if restoreState failed

Attributes

Remarks

Restores the state of this WebView from the given Bundle. This method is intended for use in android.app.Activity#onRestoreInstanceState and should be called to restore the state of this WebView. If it is called after this WebView has had a chance to build state (load pages, create a back/forward list, etc.) there may be undesirable side-effects. Please note that this method no longer restores the display data for this WebView.

Java documentation for android.webkit.WebView.restoreState(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