Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

TextLinks.SpanFactory

public static interface TextLinks.SpanFactory

androidx.textclassifier.TextLinks.SpanFactory


A factory to create spans from TextLinks.

Summary

Public methods

abstract TextLinks.TextLinkSpan createSpan(TextLinks.TextLinkSpanData textLinkSpanData)

Creates a span from a text link.

Public methods

createSpan

public abstract TextLinks.TextLinkSpan createSpan (TextLinks.TextLinkSpanData textLinkSpanData)

Creates a span from a text link.

Parameters
textLinkSpanData TextLinks.TextLinkSpanData

Returns
TextLinks.TextLinkSpan