Bundle.DeepCopy Method

Definition

Make a deep copy of the given bundle.

[Android.Runtime.Register("deepCopy", "()Landroid/os/Bundle;", "", ApiSince=26)]
public Android.OS.Bundle? DeepCopy ();
[<Android.Runtime.Register("deepCopy", "()Landroid/os/Bundle;", "", ApiSince=26)>]
member this.DeepCopy : unit -> Android.OS.Bundle

Returns

Attributes

Remarks

Make a deep copy of the given bundle. Traverses into inner containers and copies them as well, so they are not shared across bundles. Will traverse in to Bundle, PersistableBundle, ArrayList, and all types of primitive arrays. Other types of objects (such as Parcelable or Serializable) are referenced as-is and not copied in any way.

Java documentation for android.os.Bundle.deepCopy().

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