Freigeben über


Intent.GetParcelableArrayListExtra Method

Definition

Overloads

GetParcelableArrayListExtra(String)

Retrieve extended data from the intent.

GetParcelableArrayListExtra(String, Class)

Retrieve extended data from the intent.

GetParcelableArrayListExtra(String)

Retrieve extended data from the intent.

[Android.Runtime.Register("getParcelableArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;", "GetGetParcelableArrayListExtra_Ljava_lang_String_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public virtual System.Collections.IList? GetParcelableArrayListExtra (string? name);
[<Android.Runtime.Register("getParcelableArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;", "GetGetParcelableArrayListExtra_Ljava_lang_String_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
abstract member GetParcelableArrayListExtra : string -> System.Collections.IList
override this.GetParcelableArrayListExtra : string -> System.Collections.IList

Parameters

name
String

The name of the desired item.

Returns

the value of an item previously added with putParcelableArrayListExtra(), or null if no ArrayList<Parcelable> value was found.

Attributes

Remarks

Retrieve extended data from the intent.

This member is deprecated. Use the type-safer #getParcelableArrayListExtra(String, Class) starting from Android Build.VERSION_CODES#TIRAMISU.

Java documentation for android.content.Intent.getParcelableArrayListExtra(java.lang.String).

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

GetParcelableArrayListExtra(String, Class)

Retrieve extended data from the intent.

[Android.Runtime.Register("getParcelableArrayListExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/ArrayList;", "GetGetParcelableArrayListExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual System.Collections.IList? GetParcelableArrayListExtra (string? name, Java.Lang.Class clazz);
[<Android.Runtime.Register("getParcelableArrayListExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/ArrayList;", "GetGetParcelableArrayListExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetParcelableArrayListExtra : string * Java.Lang.Class -> System.Collections.IList
override this.GetParcelableArrayListExtra : string * Java.Lang.Class -> System.Collections.IList

Parameters

name
String

The name of the desired item.

clazz
Class

The type of the items inside the array list. This is only verified when unparceling.

Returns

the value of an item previously added with putParcelableArrayListExtra(), or null if no ArrayList<Parcelable> value was found.

Attributes

Remarks

Retrieve extended data from the intent.

Java documentation for android.content.Intent.getParcelableArrayListExtra(java.lang.String, java.lang.Class<? extends T>).

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