Partager via


Parcel.ReadMap Method

Definition

Overloads

ReadMap(IDictionary, ClassLoader)

Please use #readBundle(ClassLoader) instead (whose data must have been written with #writeBundle.

ReadMap(IDictionary, ClassLoader, Class, Class)

Same as #readMap(Map, ClassLoader) but accepts clazzKey and clazzValue parameter as the types required for each key and value pair.

ReadMap(IDictionary, ClassLoader)

Please use #readBundle(ClassLoader) instead (whose data must have been written with #writeBundle.

[Android.Runtime.Register("readMap", "(Ljava/util/Map;Ljava/lang/ClassLoader;)V", "")]
public void ReadMap (System.Collections.IDictionary outVal, Java.Lang.ClassLoader? loader);
[<Android.Runtime.Register("readMap", "(Ljava/util/Map;Ljava/lang/ClassLoader;)V", "")>]
member this.ReadMap : System.Collections.IDictionary * Java.Lang.ClassLoader -> unit

Parameters

outVal
IDictionary
loader
ClassLoader
Attributes

Remarks

Please use #readBundle(ClassLoader) instead (whose data must have been written with #writeBundle. Read into an existing Map object from the parcel at the current dataPosition().

This member is deprecated. Consider using #readBundle(ClassLoader) as stated above, in case this method is still preferred use the type-safer version #readMap(Map, ClassLoader, Class, Class) starting from Android Build.VERSION_CODES#TIRAMISU.

Java documentation for android.os.Parcel.readMap(java.util.Map, 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

ReadMap(IDictionary, ClassLoader, Class, Class)

Same as #readMap(Map, ClassLoader) but accepts clazzKey and clazzValue parameter as the types required for each key and value pair.

[Android.Runtime.Register("readMap", "(Ljava/util/Map;Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/Class;)V", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public void ReadMap (System.Collections.IDictionary outVal, Java.Lang.ClassLoader? loader, Java.Lang.Class clazzKey, Java.Lang.Class clazzValue);
[<Android.Runtime.Register("readMap", "(Ljava/util/Map;Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/Class;)V", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
member this.ReadMap : System.Collections.IDictionary * Java.Lang.ClassLoader * Java.Lang.Class * Java.Lang.Class -> unit

Parameters

outVal
IDictionary
loader
ClassLoader
clazzKey
Class
clazzValue
Class
Attributes

Remarks

Same as #readMap(Map, ClassLoader) but accepts clazzKey and clazzValue parameter as the types required for each key and value pair.

Java documentation for android.os.Parcel.readMap(java.util.Map<? super K, ? super V>, java.lang.ClassLoader, java.lang.Class<K>, java.lang.Class<V>).

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