Share via


WebView.RequestFocusNodeHref(Message) Method

Definition

Requests the anchor or image element URL at the last tapped point.

[Android.Runtime.Register("requestFocusNodeHref", "(Landroid/os/Message;)V", "GetRequestFocusNodeHref_Landroid_os_Message_Handler")]
public virtual void RequestFocusNodeHref (Android.OS.Message? hrefMsg);
[<Android.Runtime.Register("requestFocusNodeHref", "(Landroid/os/Message;)V", "GetRequestFocusNodeHref_Landroid_os_Message_Handler")>]
abstract member RequestFocusNodeHref : Android.OS.Message -> unit
override this.RequestFocusNodeHref : Android.OS.Message -> unit

Parameters

hrefMsg
Message

the message to be dispatched with the result of the request. The message data contains three keys. "url" returns the anchor's href attribute. "title" returns the anchor's text. "src" returns the image's src attribute.

Attributes

Remarks

Requests the anchor or image element URL at the last tapped point. If hrefMsg is null, this method returns immediately and does not dispatch hrefMsg to its target. If the tapped point hits an image, an anchor, or an image in an anchor, the message associates strings in named keys in its data. The value paired with the key may be an empty string.

Java documentation for android.webkit.WebView.requestFocusNodeHref(android.os.Message).

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