Activity.OnPrepareDialog Activity.OnPrepareDialog Method

Definition

Overloads

OnPrepareDialog(Int32, Dialog) OnPrepareDialog(Int32, Dialog)
OnPrepareDialog(Int32, Dialog, Bundle) OnPrepareDialog(Int32, Dialog, Bundle)

Provides an opportunity to prepare a managed dialog before it is being shown.

OnPrepareDialog(Int32, Dialog) OnPrepareDialog(Int32, Dialog)

Warning

This API is now obsolete.

[Android.Runtime.Register("onPrepareDialog", "(ILandroid/app/Dialog;)V", "GetOnPrepareDialog_ILandroid_app_Dialog_Handler")]
[System.Obsolete("deprecated")]
protected virtual void OnPrepareDialog (int id, Android.App.Dialog dialog);
abstract member OnPrepareDialog : int * Android.App.Dialog -> unit
override this.OnPrepareDialog : int * Android.App.Dialog -> unit

Parameters

dialog
Dialog Dialog

Remarks

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.

OnPrepareDialog(Int32, Dialog, Bundle) OnPrepareDialog(Int32, Dialog, Bundle)

Warning

This API is now obsolete.

Provides an opportunity to prepare a managed dialog before it is being shown.

[System.Obsolete("deprecated")]
[Android.Runtime.Register("onPrepareDialog", "(ILandroid/app/Dialog;Landroid/os/Bundle;)V", "GetOnPrepareDialog_ILandroid_app_Dialog_Landroid_os_Bundle_Handler", ApiSince=8)]
protected virtual void OnPrepareDialog (int id, Android.App.Dialog dialog, Android.OS.Bundle args);
abstract member OnPrepareDialog : int * Android.App.Dialog * Android.OS.Bundle -> unit
override this.OnPrepareDialog : int * Android.App.Dialog * Android.OS.Bundle -> unit

Parameters

id
Int32 Int32

The id of the managed dialog.

dialog
Dialog Dialog

The dialog.

args
Bundle Bundle

The dialog arguments provided to ShowDialog(Int32, Bundle).

Remarks

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.

See also

Applies to