added in API level 28
TextLinks.TextLinkSpan
public
static
class
TextLinks.TextLinkSpan
extends ClickableSpan
java.lang.Object | |||
↳ | 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 | |
---|---|
TextLinks.TextLinkSpan(TextLinks.TextLink textLink)
|
Public methods | |
---|---|
final
TextLinks.TextLink
|
getTextLink()
|
void
|
onClick(View widget)
Performs the click action associated with this span. |
Inherited methods | |
---|---|
Public constructors
TextLinks.TextLinkSpan
added in API level 28
public TextLinks.TextLinkSpan (TextLinks.TextLink textLink)
Parameters | |
---|---|
textLink |
TextLinks.TextLink This value must never be |
Public methods
getTextLink
added in API level 28
public final TextLinks.TextLink getTextLink ()
Returns | |
---|---|
TextLinks.TextLink |
onClick
added in API level 28
public void onClick (View widget)
Performs the click action associated with this span.
Parameters | |
---|---|
widget |
View |
Interfaces
Classes
- SelectionEvent
- TextClassification
- TextClassification.Builder
- TextClassification.Request
- TextClassification.Request.Builder
- TextClassificationContext
- TextClassificationContext.Builder
- TextClassificationManager
- TextClassificationSessionId
- TextClassifier.EntityConfig
- TextLinks
- TextLinks.Builder
- TextLinks.Request
- TextLinks.Request.Builder
- TextLinks.TextLink
- TextLinks.TextLinkSpan
- TextSelection
- TextSelection.Builder
- TextSelection.Request
- TextSelection.Request.Builder