Sdílet prostřednictvím


DialogPreference.ShowDialog(Bundle) Method

Definition

Shows the dialog associated with this Preference.

[Android.Runtime.Register("showDialog", "(Landroid/os/Bundle;)V", "GetShowDialog_Landroid_os_Bundle_Handler")]
protected virtual void ShowDialog (Android.OS.Bundle? state);
[<Android.Runtime.Register("showDialog", "(Landroid/os/Bundle;)V", "GetShowDialog_Landroid_os_Bundle_Handler")>]
abstract member ShowDialog : Android.OS.Bundle -> unit
override this.ShowDialog : Android.OS.Bundle -> unit

Parameters

state
Bundle

Optional instance state to restore on the dialog

Attributes

Remarks

Shows the dialog associated with this Preference. This is normally initiated automatically on clicking on the preference. Call this method if you need to show the dialog on some other event.

Java documentation for android.preference.DialogPreference.showDialog(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