Activity.OnCreateDialog Activity.OnCreateDialog Method

Definition

Overloads

OnCreateDialog(Int32) OnCreateDialog(Int32)
OnCreateDialog(Int32, Bundle) OnCreateDialog(Int32, Bundle)

Callback for creating dialogs that are managed (saved and restored) for you by the activity.

OnCreateDialog(Int32) OnCreateDialog(Int32)

Warning

This API is now obsolete.

[Android.Runtime.Register("onCreateDialog", "(I)Landroid/app/Dialog;", "GetOnCreateDialog_IHandler")]
[System.Obsolete("deprecated")]
protected virtual Android.App.Dialog OnCreateDialog (int id);
abstract member OnCreateDialog : int -> Android.App.Dialog
override this.OnCreateDialog : int -> Android.App.Dialog

Parameters

Returns

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.

OnCreateDialog(Int32, Bundle) OnCreateDialog(Int32, Bundle)

Warning

This API is now obsolete.

Callback for creating dialogs that are managed (saved and restored) for you by the activity.

[System.Obsolete("deprecated")]
[Android.Runtime.Register("onCreateDialog", "(ILandroid/os/Bundle;)Landroid/app/Dialog;", "GetOnCreateDialog_ILandroid_os_Bundle_Handler", ApiSince=8)]
protected virtual Android.App.Dialog OnCreateDialog (int id, Android.OS.Bundle args);
abstract member OnCreateDialog : int * Android.OS.Bundle -> Android.App.Dialog
override this.OnCreateDialog : int * Android.OS.Bundle -> Android.App.Dialog

Parameters

id
Int32 Int32

The id of the dialog.

args
Bundle Bundle

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

Returns

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