public class AssistStructure
extends Object implements Parcelable
| java.lang.Object | |
| android.app.assist.AssistStructure | |
协助平台实现 onProvideAssistData(Bundle)自动创建的数据。
Nested classes |
|
|---|---|
class |
AssistStructure.ViewNode 描述辅助数据中的单个视图。 |
class |
AssistStructure.WindowNode 描述辅助数据中的窗口。 |
Inherited constants |
|---|
android.os.Parcelable
|
Fields |
|
|---|---|
public static final Creator<AssistStructure> |
CREATOR |
Public constructors |
|
|---|---|
AssistStructure() |
|
公共方法(Public methods) |
|
|---|---|
int |
describeContents() 描述此Parcelable实例的封送表示中包含的特殊对象的种类。 |
ComponentName |
getActivityComponent() 返回这个AssistStructure来自的活动。 |
AssistStructure.WindowNode |
getWindowNodeAt(int index) 返回辅助数据中的一个窗口。 |
int |
getWindowNodeCount() 返回此辅助数据中收集的窗口内容的数量。 |
void |
writeToParcel(Parcel out, int flags) 将此对象平铺到一个包裹中。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
android.os.Parcelable
|
|
int describeContents ()
描述此Parcelable实例的封送表示中包含的特殊对象的种类。 例如,如果对象将在writeToParcel(Parcel, int)的输出中包含writeToParcel(Parcel, int) ,则此方法的返回值必须包含CONTENTS_FILE_DESCRIPTOR位。
| 返回(Returns) | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. |
ComponentName getActivityComponent ()
返回这个AssistStructure来自的活动。
| 返回(Returns) | |
|---|---|
ComponentName |
|
AssistStructure.WindowNode getWindowNodeAt (int index)
返回辅助数据中的一个窗口。
| 参数(Parameters) | |
|---|---|
index |
int: Which window to retrieve, may be 0 to getWindowNodeCount()-1. |
| 返回(Returns) | |
|---|---|
AssistStructure.WindowNode |
|
int getWindowNodeCount ()
返回此辅助数据中收集的窗口内容的数量。
| 返回(Returns) | |
|---|---|
int |
|
void writeToParcel (Parcel out, int flags)
将此对象平铺到一个包裹中。
| 参数(Parameters) | |
|---|---|
out |
Parcel: The Parcel in which the object should be written. |
flags |
int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |