Added in API level 28

TextLinkSpan


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

A ClickableSpan for a TextLink.

Applies only to TextViews.

Summary

Public constructors

Public methods
TextLinks.TextLink!

open Unit
onClick(widget: View)

Inherited functions

Public constructors

TextLinkSpan

Added in API level 28
TextLinkSpan(textLink: TextLinks.TextLink)
Parameters
textLink TextLinks.TextLink: This value cannot be null.

Public methods

Added in API level 28
fun getTextLink(): TextLinks.TextLink!

onClick

Added in API level 28
open fun onClick(widget: View): Unit
Parameters
widget View: This value cannot be null.