Android Guides | Samples

Android.OS.IParcelableClassLoaderCreator.CreateFromParcel Method

Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by . and using the given ClassLoader.

Syntax

[Android.Runtime.Register("createFromParcel", "(Landroid/os/Parcel;Ljava/lang/ClassLoader;)Ljava/lang/Object;", "GetCreateFromParcel_Landroid_os_Parcel_Ljava_lang_ClassLoader_Handler:Android.OS.IParcelableClassLoaderCreatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Object CreateFromParcel (Parcel source, ClassLoader loader)

Parameters

source
The Parcel to read the object's data from.
loader
The ClassLoader that this object is being created in.

Remarks

Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by . and using the given ClassLoader.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 13