Most visited

Recently visited

Added in API level 1

Parcelable.Creator

public static interface Parcelable.Creator

android.os.Parcelable.Creator<T>
Known Indirect Subclasses


必须实现的接口以及作为公共CREATOR字段提供的接口,该字段可从Parcel中生成Parcelable类的实例。

摘要(Summary)

公共方法(Public methods)

abstract T createFromParcel(Parcel source)

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

abstract T[] newArray(int size)

创建一个Parcelable类的新数组。

公共方法(Public methods)

createFromParcel

Added in API level 1
T createFromParcel (Parcel source)

创建一个Parcelable类的新实例,通过给定Parcel实例化它,其中的数据先前由 Parcelable.writeToParcel()编写。

参数(Parameters)
source Parcel: The Parcel to read the object's data from.
返回(Returns)
T Returns a new instance of the Parcelable class.

newArray

Added in API level 1
T[] newArray (int size)

创建一个Parcelable类的新数组。

参数(Parameters)
size int: Size of the array.
返回(Returns)
T[] Returns an array of the Parcelable class, with every entry initialized to null.

Hooray!