PersistableBundle Constructors

Definition

Overloads

PersistableBundle()

Constructs a new, empty PersistableBundle.

PersistableBundle(PersistableBundle)

Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle.

PersistableBundle(Int32)

Constructs a new, empty PersistableBundle sized to hold the given number of elements.

PersistableBundle()

Constructs a new, empty PersistableBundle.

[Android.Runtime.Register(".ctor", "()V", "")]
public PersistableBundle ();
Attributes

Remarks

Constructs a new, empty PersistableBundle.

Java documentation for android.os.PersistableBundle.PersistableBundle().

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

PersistableBundle(PersistableBundle)

Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle.

[Android.Runtime.Register(".ctor", "(Landroid/os/PersistableBundle;)V", "")]
public PersistableBundle (Android.OS.PersistableBundle? b);
[<Android.Runtime.Register(".ctor", "(Landroid/os/PersistableBundle;)V", "")>]
new Android.OS.PersistableBundle : Android.OS.PersistableBundle -> Android.OS.PersistableBundle

Parameters

b
PersistableBundle

a PersistableBundle to be copied.

Attributes

Remarks

Constructs a PersistableBundle containing a copy of the mappings from the given PersistableBundle. Does only a shallow copy of the original PersistableBundle -- see #deepCopy() if that is not what you want.

Java documentation for android.os.PersistableBundle.PersistableBundle(android.os.PersistableBundle).

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

PersistableBundle(Int32)

Constructs a new, empty PersistableBundle sized to hold the given number of elements.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public PersistableBundle (int capacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.OS.PersistableBundle : int -> Android.OS.PersistableBundle

Parameters

capacity
Int32

the initial capacity of the PersistableBundle

Attributes

Remarks

Constructs a new, empty PersistableBundle sized to hold the given number of elements. The PersistableBundle will grow as needed.

Java documentation for android.os.PersistableBundle.PersistableBundle(int).

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