IParcelableClassLoaderCreator.CreateFromParcel(Parcel, ClassLoader) 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.
Create a new instance of the Parcelable class, instantiating it
from the given Parcel whose data had previously been written by
Parcelable#writeToParcel Parcelable.writeToParcel()
and
using the given ClassLoader.
[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 Java.Lang.Object? CreateFromParcel (Android.OS.Parcel? source, Java.Lang.ClassLoader? loader);
[<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")>]
abstract member CreateFromParcel : Android.OS.Parcel * Java.Lang.ClassLoader -> Java.Lang.Object
Parameters
- source
- Parcel
The Parcel to read the object's data from.
- loader
- ClassLoader
The ClassLoader that this object is being created in.
Returns
Returns a new instance of the Parcelable class.
- Attributes
Remarks
Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by Parcelable#writeToParcel Parcelable.writeToParcel()
and using the given ClassLoader.
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.