The Android Developer Challenge is back! Submit your idea before December 2.

TextLinkSpan

abstract class TextLinkSpan : ClickableSpan
kotlin.Any
   ↳ android.text.style.CharacterStyle
   ↳ android.text.style.ClickableSpan
   ↳ androidx.textclassifier.TextLinks.TextLinkSpan

A ClickableSpan for a TextLink.

You can implement the onClick(View) function to specify the on click behavior of the span.

Summary

Public constructors

<init>(@NonNull textLinkSpanData: TextLinks.TextLinkSpanData)

Public methods

TextLinks.TextLinkSpanData

Returns the data that is relevant to this span.

Public constructors

<init>

TextLinkSpan(@NonNull textLinkSpanData: TextLinks.TextLinkSpanData)

Public methods

getTextLinkSpanData

@NonNull fun getTextLinkSpanData(): TextLinks.TextLinkSpanData

Returns the data that is relevant to this span.