Android.App.Activity.OnPrepareDialog Method
Provides an opportunity to prepare a managed dialog before it is being shown.

Syntax

[Android.Runtime.Register("onPrepareDialog", "(ILandroid/app/Dialog;Landroid/os/Bundle;)V", "GetOnPrepareDialog_ILandroid_app_Dialog_Landroid_os_Bundle_Handler")]
[System.Obsolete("deprecated")]
protected virtual void OnPrepareDialog (int id, Dialog dialog, Android.OS.Bundle args)

See Also

Activity.OnCreateDialog(int, Android.OS.Bundle)
Activity.ShowDialog(int)
Activity.DismissDialog(int)
Activity.RemoveDialog(int)

Parameters

id
The id of the managed dialog.
dialog
The dialog.
args
The dialog arguments provided to Activity.ShowDialog(int, Android.OS.Bundle).

Remarks

Provides an opportunity to prepare a managed dialog before it is being shown. The default implementation calls through to Activity.OnPrepareDialog(int, Android.App.Dialog) for compatibility.

Override this if you need to update a managed dialog based on the state of the application each time it is shown. For example, a time picker dialog might want to be updated with the current time. You should call through to the superclass's implementation. The default implementation will set this Activity as the owner activity on the Dialog.

[Android Documentation]

Requirements

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