This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Download Microsoft Edge
More info about Internet Explorer and Microsoft Edge
Returns the value associated with the given key, or
null
if
no mapping of the desired type exists for the given key or a
null
value is explicitly associated with the key.
Returns the value associated with the given key, or
null
if
no mapping of the desired type exists for the given key or a
null
value is explicitly associated with the key.
[Android.Runtime.Register("getParcelableArrayList", "(Ljava/lang/String;)Ljava/util/ArrayList;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public System.Collections.IList? GetParcelableArrayList (string? key);
[<Android.Runtime.Register("getParcelableArrayList", "(Ljava/lang/String;)Ljava/util/ArrayList;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
member this.GetParcelableArrayList : string -> System.Collections.IList
Parameters
Remarks
Returns the value associated with the given key, or
null
if no mapping of the desired type exists for the given key or a
null
value is explicitly associated with the key.
<b>Note: </b> if the expected value is not a class provided by the Android platform, you must call
#setClassLoader(ClassLoader)
with the proper
ClassLoader
first. Otherwise, this method might throw an exception or return
null
.
This member is deprecated. Use the type-safer
#getParcelable(String, Class)
starting from Android
Build.VERSION_CODES#TIRAMISU
.
Java documentation for
android.os.Bundle.getParcelableArrayList(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.
[Android.Runtime.Register("getParcelableArrayList", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/ArrayList;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public System.Collections.IList? GetParcelableArrayList (string? key, Java.Lang.Class clazz);
[<Android.Runtime.Register("getParcelableArrayList", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/ArrayList;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.GetParcelableArrayList : string * Java.Lang.Class -> System.Collections.IList
Parameters
Remarks
Returns the value associated with the given key, or
null
if: <ul> <li>No mapping of the desired type exists for the given key. <li>A
null
value is explicitly associated with the key. <li>The object is not of type
clazz
. </ul>
<b>Note: </b> if the expected value is not a class provided by the Android platform, you must call
#setClassLoader(ClassLoader)
with the proper
ClassLoader
first. Otherwise, this method might throw an exception or return
null
.
<b>Warning: </b> if the list contains items implementing the
Parcelable
interface, the class that implements
Parcelable
has to be the immediately enclosing class of the runtime type of its CREATOR field (that is,
Class#getEnclosingClass()
has to return the parcelable implementing class), otherwise this method might throw an exception. If the Parcelable class does not enclose the CREATOR, use the deprecated
#getParcelableArrayList(String)
instead.
Java documentation for
android.os.Bundle.getParcelableArrayList(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.