{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

UrlAnnotation

@ExperimentalTextApi
public final class UrlAnnotation


An annotation that contains the metadata intended for text-to-speech engine. If the text is being processed by a text-to-speech engine, the engine may use the data in this annotation in addition to or instead of its associated text.

Summary

Public constructors

Public methods

boolean
equals(Object other)
final @NonNull String
int
@NonNull String

Public constructors

UrlAnnotation

public UrlAnnotation(@NonNull String url)

Public methods

equals

public boolean equals(Object other)

getUrl

public final @NonNull String getUrl()

hashCode

public int hashCode()

toString

public @NonNull String toString()