次の方法で共有


Dialog.OnSaveInstanceState Method

Definition

Saves the state of the dialog into a bundle.

[Android.Runtime.Register("onSaveInstanceState", "()Landroid/os/Bundle;", "GetOnSaveInstanceStateHandler")]
public virtual Android.OS.Bundle OnSaveInstanceState ();
[<Android.Runtime.Register("onSaveInstanceState", "()Landroid/os/Bundle;", "GetOnSaveInstanceStateHandler")>]
abstract member OnSaveInstanceState : unit -> Android.OS.Bundle
override this.OnSaveInstanceState : unit -> Android.OS.Bundle

Returns

A bundle with the state of the dialog.

Attributes

Remarks

Saves the state of the dialog into a bundle.

The default implementation saves the state of its view hierarchy, so you'll likely want to call through to super if you override this to save additional state.

Java documentation for android.app.Dialog.onSaveInstanceState().

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