Intent.GetParcelableArrayExtra 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.
Overloads
GetParcelableArrayExtra(String, Class) |
Retrieve extended data from the intent. |
GetParcelableArrayExtra(String) |
Retrieve extended data from the intent. |
GetParcelableArrayExtra(String, Class)
Retrieve extended data from the intent.
[Android.Runtime.Register("getParcelableArrayExtra", "(Ljava/lang/String;Ljava/lang/Class;)[Ljava/lang/Object;", "GetGetParcelableArrayExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object[]? GetParcelableArrayExtra (string? name, Java.Lang.Class clazz);
[<Android.Runtime.Register("getParcelableArrayExtra", "(Ljava/lang/String;Ljava/lang/Class;)[Ljava/lang/Object;", "GetGetParcelableArrayExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetParcelableArrayExtra : string * Java.Lang.Class -> Java.Lang.Object[]
override this.GetParcelableArrayExtra : string * Java.Lang.Class -> Java.Lang.Object[]
Parameters
- name
- String
The name of the desired item.
- clazz
- Class
The type of the items inside the array. This is only verified when unparceling.
Returns
the value of an item previously added with putExtra(), or null if no Parcelable[] value was found.
- Attributes
Remarks
Retrieve extended data from the intent.
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
GetParcelableArrayExtra(String)
Retrieve extended data from the intent.
[Android.Runtime.Register("getParcelableArrayExtra", "(Ljava/lang/String;)[Landroid/os/Parcelable;", "GetGetParcelableArrayExtra_Ljava_lang_String_Handler")]
public virtual Android.OS.IParcelable[]? GetParcelableArrayExtra (string? name);
[<Android.Runtime.Register("getParcelableArrayExtra", "(Ljava/lang/String;)[Landroid/os/Parcelable;", "GetGetParcelableArrayExtra_Ljava_lang_String_Handler")>]
abstract member GetParcelableArrayExtra : string -> Android.OS.IParcelable[]
override this.GetParcelableArrayExtra : string -> Android.OS.IParcelable[]
Parameters
- name
- String
The name of the desired item.
Returns
the value of an item previously added with putExtra(), or null if no Parcelable[] value was found.
- Attributes
Remarks
Retrieve extended data from the intent.
This member is deprecated. Use the type-safer #getParcelableArrayExtra(String, Class)
starting from Android Build.VERSION_CODES#TIRAMISU
.
Java documentation for android.content.Intent.getParcelableArrayExtra(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.
See also
- <xref:Android.Content.Intent.PutExtra(System.String%2c+Android.OS.IParcelable%5b%5d)>