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 | |
|---|---|
TextLinkSpan(textLink: TextLinks.TextLink) |
|
| Public methods | |
|---|---|
| TextLinks.TextLink! | |
| open Unit |
Performs the click action associated with this span. |
| 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
onClick
Added in API level 28
open fun onClick(widget: View): Unit
Performs the click action associated with this span.
| Parameters | |
|---|---|
widget |
View: This value cannot be null. |