Freigeben über


PersistableBundle.DeepCopy Method

Definition

Make a deep copy of the given bundle.

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

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.PersistableBundle.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