Android.App.Activity.DismissDialog Method
Dismiss a dialog that was previously shown via Activity.ShowDialog(int).

Syntax

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

See Also

Activity.OnCreateDialog(int, Android.OS.Bundle)
Activity.OnPrepareDialog(int, Android.App.Dialog, Android.App.Dialog)
Activity.ShowDialog(int)
Activity.RemoveDialog(int)

Parameters

id
The id of the managed dialog.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the id was not previously shown via Activity.ShowDialog(int).

Remarks

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

[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