Språk

AccessibilityNodeInfo.SelectionPosition.Builder Constructors

Definition

Overloads

AccessibilityNodeInfo.SelectionPosition.Builder(AccessibilityNodeInfo, Int32)

Creates a new Builder.

[Android.Runtime.Register(".ctor", "(Landroid/view/accessibility/AccessibilityNodeInfo;I)V", "", ApiSince=37)]
public Builder(Android.Views.Accessibility.AccessibilityNodeInfo node, int offset);
[<Android.Runtime.Register(".ctor", "(Landroid/view/accessibility/AccessibilityNodeInfo;I)V", "", ApiSince=37)>]
new Android.Views.Accessibility.AccessibilityNodeInfo.SelectionPosition.Builder : Android.Views.Accessibility.AccessibilityNodeInfo * int -> Android.Views.Accessibility.AccessibilityNodeInfo.SelectionPosition.Builder

Parameters

node
AccessibilityNodeInfo

The AccessibilityNodeInfo for the node of this position. This value cannot be null.

offset
Int32

The offset for the position.

Attributes

Remarks

Creates a new Builder.

By default, the offset type is initialized to AccessibilityNodeInfo.SelectionPosition.OFFSET_TYPE_TEXT.

Android reference for android.view.accessibility.AccessibilityNodeInfo.SelectionPosition.Builder.Builder.

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

AccessibilityNodeInfo.SelectionPosition.Builder(View, Int32)

Creates a new Builder.

[Android.Runtime.Register(".ctor", "(Landroid/view/View;I)V", "", ApiSince=37)]
public Builder(Android.Views.View view, int offset);
[<Android.Runtime.Register(".ctor", "(Landroid/view/View;I)V", "", ApiSince=37)>]
new Android.Views.Accessibility.AccessibilityNodeInfo.SelectionPosition.Builder : Android.Views.View * int -> Android.Views.Accessibility.AccessibilityNodeInfo.SelectionPosition.Builder

Parameters

view
View

The View containing the text associated with this selection. This value cannot be null.

offset
Int32

The offset for the position.

Attributes

Remarks

Creates a new Builder.

By default, the offset type is initialized to AccessibilityNodeInfo.SelectionPosition.OFFSET_TYPE_TEXT.

Android reference for android.view.accessibility.AccessibilityNodeInfo.SelectionPosition.Builder.Builder.

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

AccessibilityNodeInfo.SelectionPosition.Builder(View, Int32, Int32)

Creates a new Builder.

[Android.Runtime.Register(".ctor", "(Landroid/view/View;II)V", "", ApiSince=37)]
public Builder(Android.Views.View view, int virtualDescendantId, int offset);
[<Android.Runtime.Register(".ctor", "(Landroid/view/View;II)V", "", ApiSince=37)>]
new Android.Views.Accessibility.AccessibilityNodeInfo.SelectionPosition.Builder : Android.Views.View * int * int -> Android.Views.Accessibility.AccessibilityNodeInfo.SelectionPosition.Builder

Parameters

view
View

The view whose virtual descendant is associated with the selection position. This value cannot be null.

virtualDescendantId
Int32

The virtual descendant id.

offset
Int32

The offset for the position.

Attributes

Remarks

Creates a new Builder.

By default, the offset type is initialized to AccessibilityNodeInfo.SelectionPosition.OFFSET_TYPE_TEXT.

Android reference for android.view.accessibility.AccessibilityNodeInfo.SelectionPosition.Builder.Builder.

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