Most visited

Recently visited

Added in API level 23

AssistStructure

public class AssistStructure
extends Object implements Parcelable

java.lang.Object
   ↳ android.app.assist.AssistStructure


协助平台实现 onProvideAssistData(Bundle)自动创建的数据。

Summary

Nested classes

class AssistStructure.ViewNode

描述辅助数据中的单个视图。

class AssistStructure.WindowNode

描述辅助数据中的窗口。

Inherited constants

From interface 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

From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Added in API level 23
Creator<AssistStructure> CREATOR

Public constructors

AssistStructure

Added in API level 23
AssistStructure ()

Public methods

describeContents

Added in API level 23
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.

getActivityComponent

Added in API level 23
ComponentName getActivityComponent ()

返回这个AssistStructure来自的活动。

Returns
ComponentName

getWindowNodeAt

Added in API level 23
AssistStructure.WindowNode getWindowNodeAt (int index)

返回辅助数据中的一个窗口。

Parameters
index int: Which window to retrieve, may be 0 to getWindowNodeCount()-1.
Returns
AssistStructure.WindowNode

getWindowNodeCount

Added in API level 23
int getWindowNodeCount ()

返回此辅助数据中收集的窗口内容的数量。

Returns
int

writeToParcel

Added in API level 23
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.

Hooray!