Android Guides | Samples

Android.App.Activity.DismissDialog Method

Dismiss a dialog that was previously shown via Activity.ShowDialog(Int32).

Syntax

[Android.Runtime.Register("dismissDialog", "(I)V", "")]
[System.Obsolete("deprecated")]
public Void DismissDialog (Int32 id)

See Also

Parameters

id
The id of the managed dialog.

Exceptions

TypeReason
IllegalArgumentExceptionif the id was not previously shown via Activity.ShowDialog(Int32).

Remarks

Dismiss a dialog that was previously shown via Activity.ShowDialog(Int32).

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1