共用方式為


AlertDialog.Builder.Show Method

Definition

Creates an AlertDialog with the arguments supplied to this builder and immediately displays the dialog.

[Android.Runtime.Register("show", "()Landroid/app/AlertDialog;", "GetShowHandler")]
public virtual Android.App.AlertDialog Show ();
[<Android.Runtime.Register("show", "()Landroid/app/AlertDialog;", "GetShowHandler")>]
abstract member Show : unit -> Android.App.AlertDialog
override this.Show : unit -> Android.App.AlertDialog

Returns

Attributes

Remarks

Creates an AlertDialog with the arguments supplied to this builder and immediately displays the dialog.

Calling this method is functionally identical to:

AlertDialog dialog = builder.create();
                dialog.show();

Java documentation for android.app.AlertDialog.Builder.show().

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