AccessibilityNodeInfo.CollectionItemInfo.Builder


public static final class AccessibilityNodeInfo.CollectionItemInfo.Builder
extends Object

java.lang.Object
   ↳ android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo.Builder


Builder for creating CollectionItemInfo objects.

Summary

Public constructors

Builder()

Creates a new Builder.

Public methods

AccessibilityNodeInfo.CollectionItemInfo build()

Builds and returns a CollectionItemInfo.

AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnIndex(int columnIndex)

Sets the column index at which the item is located.

AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnSpan(int columnSpan)

Sets the number of columns the item spans.

AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnTitle(String columnTitle)

Sets the column title at which the item is located.

AccessibilityNodeInfo.CollectionItemInfo.Builder setHeading(boolean heading)

Sets the collection item is a heading.

AccessibilityNodeInfo.CollectionItemInfo.Builder setRowIndex(int rowIndex)

Sets the row index at which the item is located.

AccessibilityNodeInfo.CollectionItemInfo.Builder setRowSpan(int rowSpan)

Sets the number of rows the item spans.

AccessibilityNodeInfo.CollectionItemInfo.Builder setRowTitle(String rowTitle)

Sets the row title at which the item is located.

AccessibilityNodeInfo.CollectionItemInfo.Builder setSelected(boolean selected)

Sets the collection item is selected.

Inherited methods

Public constructors

Builder

Added in API level 33
public Builder ()

Creates a new Builder.

Public methods

build

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo build ()

Builds and returns a CollectionItemInfo.

Returns
AccessibilityNodeInfo.CollectionItemInfo This value cannot be null.

setColumnIndex

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnIndex (int columnIndex)

Sets the column index at which the item is located.

Parameters
columnIndex int: The column index

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setColumnSpan

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnSpan (int columnSpan)

Sets the number of columns the item spans.

Parameters
columnSpan int: The number of columns spans

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setColumnTitle

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnTitle (String columnTitle)

Sets the column title at which the item is located.

Parameters
columnTitle String: The column title This value may be null.

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setHeading

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setHeading (boolean heading)

Sets the collection item is a heading.

Parameters
heading boolean: The heading state

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setRowIndex

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setRowIndex (int rowIndex)

Sets the row index at which the item is located.

Parameters
rowIndex int: The row index

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setRowSpan

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setRowSpan (int rowSpan)

Sets the number of rows the item spans.

Parameters
rowSpan int: The number of rows spans

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setRowTitle

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setRowTitle (String rowTitle)

Sets the row title at which the item is located.

Parameters
rowTitle String: The row title This value may be null.

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.

setSelected

Added in API level 33
public AccessibilityNodeInfo.CollectionItemInfo.Builder setSelected (boolean selected)

Sets the collection item is selected.

Parameters
selected boolean: The number of rows spans

Returns
AccessibilityNodeInfo.CollectionItemInfo.Builder This builder This value cannot be null.