Intent.GetParcelableExtra 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
GetParcelableExtra(String) |
Retrieve extended data from the intent. |
GetParcelableExtra(String, Class) |
Retrieve extended data from the intent. |
GetParcelableExtra(String)
Retrieve extended data from the intent.
[Android.Runtime.Register("getParcelableExtra", "(Ljava/lang/String;)Landroid/os/Parcelable;", "GetGetParcelableExtra_Ljava_lang_String_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public virtual Java.Lang.Object? GetParcelableExtra (string? name);
[<Android.Runtime.Register("getParcelableExtra", "(Ljava/lang/String;)Landroid/os/Parcelable;", "GetGetParcelableExtra_Ljava_lang_String_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
abstract member GetParcelableExtra : string -> Java.Lang.Object
override this.GetParcelableExtra : string -> Java.Lang.Object
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 #getParcelableExtra(String, Class)
starting from Android Build.VERSION_CODES#TIRAMISU
.
Java documentation for android.content.Intent.getParcelableExtra(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)>
Applies to
GetParcelableExtra(String, Class)
Retrieve extended data from the intent.
[Android.Runtime.Register("getParcelableExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;", "GetGetParcelableExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object? GetParcelableExtra (string? name, Java.Lang.Class clazz);
[<Android.Runtime.Register("getParcelableExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;", "GetGetParcelableExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetParcelableExtra : string * Java.Lang.Class -> Java.Lang.Object
override this.GetParcelableExtra : string * Java.Lang.Class -> Java.Lang.Object
Parameters
- name
- String
The name of the desired item.
- clazz
- Class
The type of the object expected.
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.