Udostępnij za pośrednictwem


Activity.DismissDialog(Int32) Method

Definition

Caution

deprecated

Dismiss a dialog that was previously shown via #showDialog(int).

[Android.Runtime.Register("dismissDialog", "(I)V", "")]
[System.Obsolete("deprecated")]
public void DismissDialog (int id);
[<Android.Runtime.Register("dismissDialog", "(I)V", "")>]
[<System.Obsolete("deprecated")>]
member this.DismissDialog : int -> unit

Parameters

id
Int32

The id of the managed dialog.

Attributes

Exceptions

if the id was not previously shown via ShowDialog(Int32).

Remarks

Dismiss a dialog that was previously shown via #showDialog(int).

This member is deprecated. Use the new DialogFragment class with FragmentManager instead; this is also available on older platforms through the Android compatibility package.

Java documentation for android.app.Activity.dismissDialog(int).

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

See also

  • <xref:Android.App.Activity.OnCreateDialog(System.Int32%2c+Android.OS.Bundle)>
  • <xref:Android.App.Activity.OnPrepareDialog(System.Int32%2c+Android.App.Dialog%2c+Android.App.Dialog)>
  • ShowDialog(Int32)
  • RemoveDialog(Int32)