Bundle.DeepCopy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.