Language

Fragment.Arguments Property

Definition

Return the arguments supplied to #setArguments, if any. -or- Supply the construction arguments for this fragment.

public Android.OS.Bundle? Arguments { [Android.Runtime.Register("getArguments", "()Landroid/os/Bundle;", "")] get; [Android.Runtime.Register("setArguments", "(Landroid/os/Bundle;)V", "GetSetArguments_Landroid_os_Bundle_Handler")] set; }
[<get: Android.Runtime.Register("getArguments", "()Landroid/os/Bundle;", "")>]
[<set: Android.Runtime.Register("setArguments", "(Landroid/os/Bundle;)V", "GetSetArguments_Landroid_os_Bundle_Handler")>]
member this.Arguments : Android.OS.Bundle with get, set

Property Value

The bundle stored for this fragment's construction arguments.

Attributes

Remarks

Returns the construction arguments supplied to this fragment, if any. The arguments are retained across fragment destruction and creation. When the fragment has been added to a fragment manager, the arguments cannot be changed after its state has been saved. Before Android 8.0, they could only be set before the fragment was added to a fragment manager.

Android reference for android.app.Fragment.getArguments.

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