Language

TextLinks.TextLinkSpan Constructors

Definition

Overloads

Name Description
TextLinks.TextLinkSpan(TextLinks+TextLink)

Creates a clickable span that retains the specified text link.

TextLinks.TextLinkSpan(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

Creates a clickable span that retains the specified text link.

[Android.Runtime.Register(".ctor", "(Landroid/view/textclassifier/TextLinks$TextLink;)V", "", ApiSince=28)]
public TextLinkSpan(Android.Views.TextClassifiers.TextLinks.TextLink textLink);
[<Android.Runtime.Register(".ctor", "(Landroid/view/textclassifier/TextLinks$TextLink;)V", "", ApiSince=28)>]
new Android.Views.TextClassifiers.TextLinks.TextLinkSpan : Android.Views.TextClassifiers.TextLinks.TextLink -> Android.Views.TextClassifiers.TextLinks.TextLinkSpan

Parameters

textLink
TextLinks.TextLink

The text link to associate with this clickable span.

Attributes

Remarks

TextLink returns the link supplied to this constructor. Creating the span does not attach it to text.

Applies to

Creates a managed instance that represents an existing Java object.

protected TextLinkSpan(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.TextClassifiers.TextLinks.TextLinkSpan : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.TextClassifiers.TextLinks.TextLinkSpan

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to