共用方式為


Bundle.PutParcelable(String, IParcelable) Method

Definition

Inserts a Parcelable value into the mapping of this Bundle, replacing any existing value for the given key.

[Android.Runtime.Register("putParcelable", "(Ljava/lang/String;Landroid/os/Parcelable;)V", "")]
public void PutParcelable (string? key, Android.OS.IParcelable? value);
[<Android.Runtime.Register("putParcelable", "(Ljava/lang/String;Landroid/os/Parcelable;)V", "")>]
member this.PutParcelable : string * Android.OS.IParcelable -> unit

Parameters

key
String

a String, or null

value
IParcelable

a Parcelable object, or null

Attributes

Remarks

Inserts a Parcelable value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Java documentation for android.os.Bundle.putParcelable(java.lang.String, android.os.Parcelable).

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