Register now for Android Dev Summit 2019!

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