DiscoveredUrl

data class DiscoveredUrl(val range: IntRange, val rawUrl: String, val url: String)

Represents a URL discovered within a text sequence.

Constructors

Link copied to clipboard
constructor(range: IntRange, rawUrl: String, url: String)

Properties

Link copied to clipboard

The index range within the original text where the URL was found.

Link copied to clipboard

The exact string matched in the text (e.g. "www.google.com"). Useful if you need to know exactly what the user typed.

Link copied to clipboard
val url: String

The normalized, actionable URL (e.g. "https://www.google.com"). This ensures the URL can be safely passed to a UriHandler or WebView.