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

Attributes

Remarks

Property getter documentation:

Return the arguments supplied to #setArguments, if any.

Java documentation for android.app.Fragment.getArguments().

Property setter documentation:

Supply the construction arguments for this fragment. The arguments supplied here will be retained across fragment destroy and creation.

This method cannot be called if the fragment is added to a FragmentManager and if #isStateSaved() would return true. Prior to Build.VERSION_CODES#O, this method may only be called if the fragment has not yet been added to a FragmentManager.

Java documentation for android.app.Fragment.setArguments(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