다음을 통해 공유


Parcel.WriteMap(IDictionary) Method

Definition

Please use #writeBundle instead.

[Android.Runtime.Register("writeMap", "(Ljava/util/Map;)V", "")]
public void WriteMap (System.Collections.IDictionary? val);
[<Android.Runtime.Register("writeMap", "(Ljava/util/Map;)V", "")>]
member this.WriteMap : System.Collections.IDictionary -> unit

Parameters

Attributes

Remarks

Please use #writeBundle instead. Flattens a Map into the parcel at the current dataPosition(), growing dataCapacity() if needed. The Map keys must be String objects. The Map values are written using #writeValue and must follow the specification there.

It is strongly recommended to use #writeBundle instead of this method, since the Bundle class provides a type-safe API that allows you to avoid mysterious type errors at the point of marshalling.

Java documentation for android.os.Parcel.writeMap(java.util.Map).

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