AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder


class AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder


Class for building CollectionInfoCompat objects.

Public constructors

Creates a new Builder.

Public functions

AccessibilityNodeInfoCompat.CollectionInfoCompat

Creates a new CollectionInfoCompat instance.

AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setColumnCount(columnCount: Int)

Sets the column count.

AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setHierarchical(hierarchical: Boolean)

Sets whether the collection is hierarchical.

AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setImportantForAccessibilityItemCount(
    importantForAccessibilityItemCount: Int
)

Sets the number of views considered important for accessibility.

AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setItemCount(itemCount: Int)

Sets the number of items in the collection.

AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setRowCount(rowCount: Int)

Sets the row count.

AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setSelectionMode(selectionMode: Int)

Sets the selection mode.

Public constructors

Builder

Added in 1.15.0
Builder()

Creates a new Builder.

Public functions

build

Added in 1.15.0
fun build(): AccessibilityNodeInfoCompat.CollectionInfoCompat

Creates a new CollectionInfoCompat instance.

setColumnCount

Added in 1.15.0
fun setColumnCount(columnCount: Int): AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder

Sets the column count.

Parameters
columnCount: Int

The number of columns in the collection.

setHierarchical

Added in 1.15.0
fun setHierarchical(hierarchical: Boolean): AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder

Sets whether the collection is hierarchical.

Parameters
hierarchical: Boolean

Whether the collection is hierarchical.

setImportantForAccessibilityItemCount

Added in 1.15.0
fun setImportantForAccessibilityItemCount(
    importantForAccessibilityItemCount: Int
): AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder

Sets the number of views considered important for accessibility.

Parameters
importantForAccessibilityItemCount: Int

The number of items important for accessibility.

setItemCount

Added in 1.15.0
fun setItemCount(itemCount: Int): AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder

Sets the number of items in the collection. Can be optionally set for ViewGroups with clear row and column semantics; should be set for all other clients.

Parameters
itemCount: Int

The number of items in the collection. This should be set to UNDEFINED if the item count is not known.

setRowCount

Added in 1.15.0
fun setRowCount(rowCount: Int): AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder

Sets the row count.

Parameters
rowCount: Int

The number of rows in the collection.

setSelectionMode

Added in 1.15.0
fun setSelectionMode(selectionMode: Int): AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder

Sets the selection mode.

Parameters
selectionMode: Int

The selection mode.