Megosztás a következőn keresztül:


TextView.GetUrls Method

Definition

Returns the list of android.text.style.URLSpan URLSpans attached to the text (by Linkify or otherwise) if any.

[Android.Runtime.Register("getUrls", "()[Landroid/text/style/URLSpan;", "GetGetUrlsHandler")]
public virtual Android.Text.Style.URLSpan[]? GetUrls ();
[<Android.Runtime.Register("getUrls", "()[Landroid/text/style/URLSpan;", "GetGetUrlsHandler")>]
abstract member GetUrls : unit -> Android.Text.Style.URLSpan[]
override this.GetUrls : unit -> Android.Text.Style.URLSpan[]

Returns

Attributes

Remarks

Returns the list of android.text.style.URLSpan URLSpans attached to the text (by Linkify or otherwise) if any. You can call URLSpan#getURL on them to find where they link to or use Spanned#getSpanStart and Spanned#getSpanEnd to find the region of the text they are attached to.

Java documentation for android.widget.TextView.getUrls().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to