AccessibilityNodeInfo.CollectionInfo.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, Boolean, SelectionMode) |
Obtains a collection-info instance. |
| Obtain(Int32, Int32, Boolean) |
Obtains a collection-info instance. |
Obtain(Int32, Int32, Boolean, SelectionMode)
Obtains a collection-info instance.
[Android.Runtime.Register("obtain", "(IIZI)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.CollectionInfo? Obtain(int rowCount, int columnCount, bool hierarchical, Android.Views.Accessibility.SelectionMode selectionMode);
[<Android.Runtime.Register("obtain", "(IIZI)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;", "")>]
static member Obtain : int * int * bool * Android.Views.Accessibility.SelectionMode -> Android.Views.Accessibility.AccessibilityNodeInfo.CollectionInfo
Parameters
- rowCount
- Int32
The number of rows.
- columnCount
- Int32
The number of columns.
- hierarchical
- Boolean
Whether the collection is hierarchical.
- selectionMode
- SelectionMode
The collection's selection mode, one of: SELECTION_MODE_NONE; SELECTION_MODE_SINGLE; SELECTION_MODE_MULTIPLE
Returns
A collection-info instance with the supplied dimensions, hierarchy flag, and selection mode.
- 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.CollectionInfo.CollectionInfo(int,int,boolean,int) instead.
Android reference for android.view.accessibility.AccessibilityNodeInfo.CollectionInfo.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, Boolean)
Obtains a collection-info instance.
[Android.Runtime.Register("obtain", "(IIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.CollectionInfo? Obtain(int rowCount, int columnCount, bool hierarchical);
[<Android.Runtime.Register("obtain", "(IIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;", "")>]
static member Obtain : int * int * bool -> Android.Views.Accessibility.AccessibilityNodeInfo.CollectionInfo
Parameters
- rowCount
- Int32
The number of rows, or -1 if count is unknown.
- columnCount
- Int32
The number of columns, or -1 if count is unknown.
- hierarchical
- Boolean
Whether the collection is hierarchical.
Returns
A collection-info instance with the supplied dimensions and hierarchy flag, and no selection mode.
- 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.CollectionInfo.CollectionInfo(int,int,boolean) instead.
Android reference for android.view.accessibility.AccessibilityNodeInfo.CollectionInfo.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.