Share via


Intent.GetSerializableExtra Method

Definition

Overloads

GetSerializableExtra(String)

Retrieve extended data from the intent.

GetSerializableExtra(String, Class)

Retrieve extended data from the intent.

GetSerializableExtra(String)

Retrieve extended data from the intent.

[Android.Runtime.Register("getSerializableExtra", "(Ljava/lang/String;)Ljava/io/Serializable;", "GetGetSerializableExtra_Ljava_lang_String_Handler")]
public virtual Java.IO.ISerializable? GetSerializableExtra (string? name);
[<Android.Runtime.Register("getSerializableExtra", "(Ljava/lang/String;)Ljava/io/Serializable;", "GetGetSerializableExtra_Ljava_lang_String_Handler")>]
abstract member GetSerializableExtra : string -> Java.IO.ISerializable
override this.GetSerializableExtra : string -> Java.IO.ISerializable

Parameters

name
String

The name of the desired item.

Returns

the value of an item previously added with putExtra(), or null if no Serializable value was found.

Attributes

Remarks

Retrieve extended data from the intent.

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

Java documentation for android.content.Intent.getSerializableExtra(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+Java.IO.ISerializable)>

Applies to

GetSerializableExtra(String, Class)

Retrieve extended data from the intent.

[Android.Runtime.Register("getSerializableExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/io/Serializable;", "GetGetSerializableExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.io.Serializable" })]
public virtual Java.Lang.Object? GetSerializableExtra (string? name, Java.Lang.Class clazz);
[<Android.Runtime.Register("getSerializableExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/io/Serializable;", "GetGetSerializableExtra_Ljava_lang_String_Ljava_lang_Class_Handler", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.io.Serializable" })>]
abstract member GetSerializableExtra : string * Java.Lang.Class -> Java.Lang.Object
override this.GetSerializableExtra : 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 Serializable value was found.

Attributes

Remarks

Retrieve extended data from the intent.

Java documentation for android.content.Intent.getSerializableExtra(java.lang.String, java.lang.Class<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