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 pooled instance. |
| Obtain(Int32, Int32, Boolean) |
Obtains a pooled instance. |
Obtain(Int32, Int32, Boolean, SelectionMode)
Obtains a pooled 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
- Attributes
Remarks
This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor AccessibilityNodeInfo.CollectionInfo.CollectionInfo(int,int,boolean,int) instead.
Obtains a pooled instance.
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 pooled 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
- Attributes
Remarks
This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor AccessibilityNodeInfo.CollectionInfo.CollectionInfo(int,int,boolean) instead.
Obtains a pooled instance.
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.