Most visited

Recently visited

Added in API level 13

Parcelable.ClassLoaderCreator

public static interface Parcelable.ClassLoaderCreator
implements Creator<T>

android.os.Parcelable.ClassLoaderCreator<T>


专业化的 Parcelable.Creator ,允许您接收正在创建对象的ClassLoader。

Summary

Public methods

abstract T createFromParcel(Parcel source, ClassLoader loader)

创建一个Parcelable类的新实例,通过给定的Parcel实例化它的数据,该Parcel的数据先前由 Parcelable.writeToParcel()写入,并使用给定的ClassLoader。

Inherited methods

From interface android.os.Parcelable.Creator

Public methods

createFromParcel

Added in API level 13
T createFromParcel (Parcel source, 
                ClassLoader loader)

创建一个Parcelable类的新实例,通过给定Parcel实例化它的数据,该Parcel的数据先前由 Parcelable.writeToParcel()写入,并使用给定的ClassLoader。

Parameters
source Parcel: The Parcel to read the object's data from.
loader ClassLoader: The ClassLoader that this object is being created in.
Returns
T Returns a new instance of the Parcelable class.

Hooray!