Android Guides | Samples

Android.OS.Parcel.WriteMap Method

Please use Parcel.WriteBundle(Bundle) instead.

Syntax

[Android.Runtime.Register("writeMap", "(Ljava/util/Map;)V", "")]
public Void WriteMap (IDictionary val)

Parameters

val

Remarks

Please use Parcel.WriteBundle(Bundle) 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 Parcel.WriteValue(Object) and must follow the specification there.

It is strongly recommended to use Parcel.WriteBundle(Bundle) 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.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1