AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder


public final class AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder


Class for building CollectionInfoCompat objects.

Summary

Public constructors

Creates a new Builder.

Public methods

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat

Creates a new CollectionInfoCompat instance.

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setColumnCount(int columnCount)

Sets the column count.

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setHierarchical(boolean hierarchical)

Sets whether the collection is hierarchical.

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setImportantForAccessibilityItemCount(
    int importantForAccessibilityItemCount
)

Sets the number of views considered important for accessibility.

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setItemCount(int itemCount)

Sets the number of items in the collection.

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setRowCount(int rowCount)

Sets the row count.

@NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder
setSelectionMode(int selectionMode)

Sets the selection mode.

Public constructors

Builder

Added in 1.15.0
public Builder()

Creates a new Builder.

Public methods

setColumnCount

Added in 1.15.0
public @NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder setColumnCount(int columnCount)

Sets the column count.

Parameters
int columnCount

The number of columns in the collection.

setHierarchical

Added in 1.15.0
public @NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder setHierarchical(boolean hierarchical)

Sets whether the collection is hierarchical.

Parameters
boolean hierarchical

Whether the collection is hierarchical.

setImportantForAccessibilityItemCount

Added in 1.15.0
public @NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder setImportantForAccessibilityItemCount(
    int importantForAccessibilityItemCount
)

Sets the number of views considered important for accessibility.

Parameters
int importantForAccessibilityItemCount

The number of items important for accessibility.

setItemCount

Added in 1.15.0
public @NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder setItemCount(int itemCount)

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
int itemCount

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
public @NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder setRowCount(int rowCount)

Sets the row count.

Parameters
int rowCount

The number of rows in the collection.

setSelectionMode

Added in 1.15.0
public @NonNull AccessibilityNodeInfoCompat.CollectionInfoCompat.Builder setSelectionMode(int selectionMode)

Sets the selection mode.

Parameters
int selectionMode

The selection mode.