AccessibilityNodeInfo.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
Obtain() |
Instantiates a new AccessibilityNodeInfo. |
Obtain(AccessibilityNodeInfo) |
Instantiates a new AccessibilityNodeInfo initialized from the given
|
Obtain(View) |
Returns a cached instance if such is available otherwise a new one and sets the source. |
Obtain(View, Int32) |
Returns a cached instance if such is available otherwise a new one and sets the source. |
Obtain()
Instantiates a new AccessibilityNodeInfo.
[Android.Runtime.Register("obtain", "()Landroid/view/accessibility/AccessibilityNodeInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo? Obtain ();
[<Android.Runtime.Register("obtain", "()Landroid/view/accessibility/AccessibilityNodeInfo;", "")>]
static member Obtain : unit -> Android.Views.Accessibility.AccessibilityNodeInfo
Returns
An instance.
- Attributes
Remarks
Instantiates a new AccessibilityNodeInfo.
This member is deprecated. Object pooling has been discontinued. Create a new instance using the constructor #AccessibilityNodeInfo()
instead.
Java documentation for android.view.accessibility.AccessibilityNodeInfo.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(AccessibilityNodeInfo)
Instantiates a new AccessibilityNodeInfo initialized from the given
info
.
[Android.Runtime.Register("obtain", "(Landroid/view/accessibility/AccessibilityNodeInfo;)Landroid/view/accessibility/AccessibilityNodeInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo? Obtain (Android.Views.Accessibility.AccessibilityNodeInfo? info);
[<Android.Runtime.Register("obtain", "(Landroid/view/accessibility/AccessibilityNodeInfo;)Landroid/view/accessibility/AccessibilityNodeInfo;", "")>]
static member Obtain : Android.Views.Accessibility.AccessibilityNodeInfo -> Android.Views.Accessibility.AccessibilityNodeInfo
Parameters
The other info.
Returns
An instance.
- Attributes
Remarks
Instantiates a new AccessibilityNodeInfo initialized from the given info
.
This member is deprecated. Object pooling has been discontinued. Create a new instance using the constructor #AccessibilityNodeInfo(AccessibilityNodeInfo)
instead.
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(View)
Returns a cached instance if such is available otherwise a new one and sets the source.
[Android.Runtime.Register("obtain", "(Landroid/view/View;)Landroid/view/accessibility/AccessibilityNodeInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo? Obtain (Android.Views.View? source);
[<Android.Runtime.Register("obtain", "(Landroid/view/View;)Landroid/view/accessibility/AccessibilityNodeInfo;", "")>]
static member Obtain : Android.Views.View -> Android.Views.Accessibility.AccessibilityNodeInfo
Parameters
- source
- View
The source view.
Returns
An instance.
- Attributes
Remarks
Returns a cached instance if such is available otherwise a new one and sets the source.
This member is deprecated. Object pooling has been discontinued. Create a new instance using the constructor #AccessibilityNodeInfo(View)
instead.
Java documentation for android.view.accessibility.AccessibilityNodeInfo.obtain(android.view.View)
.
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.
See also
Applies to
Obtain(View, Int32)
Returns a cached instance if such is available otherwise a new one and sets the source.
[Android.Runtime.Register("obtain", "(Landroid/view/View;I)Landroid/view/accessibility/AccessibilityNodeInfo;", "")]
public static Android.Views.Accessibility.AccessibilityNodeInfo? Obtain (Android.Views.View? root, int virtualDescendantId);
[<Android.Runtime.Register("obtain", "(Landroid/view/View;I)Landroid/view/accessibility/AccessibilityNodeInfo;", "")>]
static member Obtain : Android.Views.View * int -> Android.Views.Accessibility.AccessibilityNodeInfo
Parameters
- root
- View
The root of the virtual subtree.
- virtualDescendantId
- Int32
The id of the virtual descendant.
Returns
An instance.
- Attributes
Remarks
Returns a cached instance if such is available otherwise a new one and sets the source.
This member is deprecated. Object pooling has been discontinued. Create a new instance using the constructor #AccessibilityNodeInfo(View, int)
instead.
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.
See also
- <xref:Android.Views.Accessibility.AccessibilityNodeInfo.SetSource(Android.Views.View%2c+System.Int32)>