DialogFragment.OnCreateDialog(Bundle) Method

Definition

Caution

deprecated

Override to build your own custom Dialog container.

[Android.Runtime.Register("onCreateDialog", "(Landroid/os/Bundle;)Landroid/app/Dialog;", "GetOnCreateDialog_Landroid_os_Bundle_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.App.Dialog? OnCreateDialog (Android.OS.Bundle? savedInstanceState);
[<Android.Runtime.Register("onCreateDialog", "(Landroid/os/Bundle;)Landroid/app/Dialog;", "GetOnCreateDialog_Landroid_os_Bundle_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member OnCreateDialog : Android.OS.Bundle -> Android.App.Dialog
override this.OnCreateDialog : Android.OS.Bundle -> Android.App.Dialog

Parameters

savedInstanceState
Bundle

The last saved instance state of the Fragment, or null if this is a freshly created Fragment.

Returns

Dialog

Return a new Dialog instance to be displayed by the Fragment.

Attributes

Remarks

Java documentation for android.app.DialogFragment.onCreateDialog(android.os.Bundle).

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.

Applies to