次の方法で共有


Bundle Constructors

Definition

Overloads

Bundle()

Constructs a new, empty Bundle.

Bundle(Bundle)

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

Bundle(PersistableBundle)

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

Bundle(ClassLoader)

Constructs a new, empty Bundle that uses a specific ClassLoader for instantiating Parcelable and Serializable objects.

Bundle(Int32)

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

Bundle()

Constructs a new, empty Bundle.

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

Remarks

Constructs a new, empty Bundle.

Java documentation for android.os.Bundle.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

Bundle(Bundle)

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

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

Parameters

b
Bundle

a Bundle to be copied.

Attributes

Remarks

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

Java documentation for android.os.Bundle.Bundle(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

Bundle(PersistableBundle)

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

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

Parameters

b
PersistableBundle

a PersistableBundle to be copied.

Attributes

Remarks

Constructs a Bundle containing a copy of the mappings from the given PersistableBundle. Does only a shallow copy of the PersistableBundle -- see PersistableBundle#deepCopy() if you don't want that.

Java documentation for android.os.Bundle.Bundle(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

Bundle(ClassLoader)

Constructs a new, empty Bundle that uses a specific ClassLoader for instantiating Parcelable and Serializable objects.

[Android.Runtime.Register(".ctor", "(Ljava/lang/ClassLoader;)V", "")]
public Bundle (Java.Lang.ClassLoader? loader);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/ClassLoader;)V", "")>]
new Android.OS.Bundle : Java.Lang.ClassLoader -> Android.OS.Bundle

Parameters

loader
ClassLoader

An explicit ClassLoader to use when instantiating objects inside of the Bundle.

Attributes

Remarks

Constructs a new, empty Bundle that uses a specific ClassLoader for instantiating Parcelable and Serializable objects.

Java documentation for android.os.Bundle.Bundle(java.lang.ClassLoader).

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

Bundle(Int32)

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

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

Parameters

capacity
Int32

the initial capacity of the Bundle

Attributes

Remarks

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

Java documentation for android.os.Bundle.Bundle(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