AccessibilityNodeInfo.RangeInfo.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.
Obtains a range-info instance.
[Android.Runtime.Register("obtain", "(IFFF)Landroid/view/accessibility/AccessibilityNodeInfo$RangeInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.RangeInfo? Obtain(Android.Views.Accessibility.RangeType type, float min, float max, float current);
[<Android.Runtime.Register("obtain", "(IFFF)Landroid/view/accessibility/AccessibilityNodeInfo$RangeInfo;", "")>]
static member Obtain : Android.Views.Accessibility.RangeType * single * single * single -> Android.Views.Accessibility.AccessibilityNodeInfo.RangeInfo
Parameters
- type
- RangeType
The type of the range. Value is one of the following: Int; Float; Percent; Indeterminate
- min
- Single
The minimum value. Use Float.NEGATIVE_INFINITY if the range has no minimum.
- max
- Single
The maximum value. Use Float.POSITIVE_INFINITY if the range has no maximum.
- current
- Single
The current value.
Returns
A range-info instance with the supplied type, minimum, maximum, and current value.
- 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.RangeInfo.RangeInfo(int,float,float,float) instead.
Android reference for android.view.accessibility.AccessibilityNodeInfo.RangeInfo.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.