次の方法で共有


ComponentName.ReadFromParcel(Parcel) Method

Definition

Read a ComponentName from a Parcel that was previously written with #writeToParcel(ComponentName, Parcel), returning either a null or new object as appropriate.

[Android.Runtime.Register("readFromParcel", "(Landroid/os/Parcel;)Landroid/content/ComponentName;", "")]
public static Android.Content.ComponentName? ReadFromParcel (Android.OS.Parcel? in);
[<Android.Runtime.Register("readFromParcel", "(Landroid/os/Parcel;)Landroid/content/ComponentName;", "")>]
static member ReadFromParcel : Android.OS.Parcel -> Android.Content.ComponentName

Parameters

in
Parcel

The Parcel from which to read the ComponentName

Returns

Returns a new ComponentName matching the previously written object, or null if a null had been written.

Attributes

Remarks

Read a ComponentName from a Parcel that was previously written with #writeToParcel(ComponentName, Parcel), returning either a null or new object as appropriate.

Java documentation for android.content.ComponentName.readFromParcel(android.os.Parcel).

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

See also

  • <xref:Android.Content.ComponentName.WriteToParcel(Android.Content.ComponentName%2c+Android.OS.Parcel)>