AccessibilityNodeInfo.CollectionItemInfo.Obtain Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Obtain(Int32, Int32, Int32, Int32, Boolean, Boolean) |
Obtains a collection-item instance. |
| Obtain(Int32, Int32, Int32, Int32, Boolean) |
Obtains a collection-item instance. |
Obtain(Int32, Int32, Int32, Int32, Boolean, Boolean)
Obtains a collection-item instance.
[Android.Runtime.Register("obtain", "(IIIIZZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.CollectionItemInfo? Obtain(int rowIndex, int rowSpan, int columnIndex, int columnSpan, bool heading, bool selected);
[<Android.Runtime.Register("obtain", "(IIIIZZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo;", "")>]
static member Obtain : int * int * int * int * bool * bool -> Android.Views.Accessibility.AccessibilityNodeInfo.CollectionItemInfo
Parameters
- rowIndex
- Int32
The row index at which the item is located.
- rowSpan
- Int32
The number of rows the item spans.
- columnIndex
- Int32
The column index at which the item is located.
- columnSpan
- Int32
The number of columns the item spans.
- heading
- Boolean
Whether the item is a heading. (Prefer AccessibilityNodeInfo.setHeading(boolean)).
- selected
- Boolean
Whether the item is selected.
Returns
A collection-item instance with the supplied row, column, spans, heading flag, and selected state.
- Attributes
Remarks
This method was deprecated in API level 33. On Android 13 (API level 33) and later, object pooling is no longer used. On Android 11 (API level 30) and later, use the constructor AccessibilityNodeInfo.CollectionItemInfo.CollectionItemInfo(int,int,int,int,boolean,boolean) instead.
Android reference for android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo.obtain.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Obtain(Int32, Int32, Int32, Int32, Boolean)
Obtains a collection-item instance.
[Android.Runtime.Register("obtain", "(IIIIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.CollectionItemInfo? Obtain(int rowIndex, int rowSpan, int columnIndex, int columnSpan, bool heading);
[<Android.Runtime.Register("obtain", "(IIIIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionItemInfo;", "")>]
static member Obtain : int * int * int * int * bool -> Android.Views.Accessibility.AccessibilityNodeInfo.CollectionItemInfo
Parameters
- rowIndex
- Int32
The row index at which the item is located.
- rowSpan
- Int32
The number of rows the item spans.
- columnIndex
- Int32
The column index at which the item is located.
- columnSpan
- Int32
The number of columns the item spans.
- heading
- Boolean
Whether the item is a heading. (Prefer AccessibilityNodeInfo.setHeading(boolean)).
Returns
A collection-item instance with the supplied row, column, spans, and heading flag, initially not selected.
- Attributes
Remarks
This method was deprecated in API level 33. On Android 13 (API level 33) and later, object pooling is no longer used. On Android 11 (API level 30) and later, use the constructor AccessibilityNodeInfo.CollectionItemInfo.CollectionItemInfo(int,int,int,int,boolean) instead.
Android reference for android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo.obtain.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.