Most visited

Recently visited

Added in API level 23

AssistStructure

public class AssistStructure
extends Object implements Parcelable

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


Assist data automatically created by the platform's implementation of onProvideAssistData(Bundle).

Summary

Nested classes

class AssistStructure.ViewNode

Describes a single view in the assist data. 

class AssistStructure.WindowNode

Describes a window in the assist data. 

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<AssistStructure> CREATOR

Public constructors

AssistStructure()

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

ComponentName getActivityComponent()

Return the activity this AssistStructure came from.

AssistStructure.WindowNode getWindowNodeAt(int index)

Return one of the windows in the assist data.

int getWindowNodeCount()

Return the number of window contents that have been collected in this assist data.

void writeToParcel(Parcel out, int flags)

Flatten this object in to a Parcel.

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 ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

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 ()

Return the activity this AssistStructure came from.

Returns
ComponentName

getWindowNodeAt

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

Return one of the windows in the assist data.

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

getWindowNodeCount

Added in API level 23
int getWindowNodeCount ()

Return the number of window contents that have been collected in this assist data.

Returns
int

writeToParcel

Added in API level 23
void writeToParcel (Parcel out, 
                int flags)

Flatten this object in to a Parcel.

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!