Parcel.WriteMap(IDictionary) 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.
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
- val
- IDictionary
- 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.