Skip to content

Add event handler for link #360

@ndusart

Description

@ndusart

In a project, we want to use the webview as a rich formatted text label. This label could contains links to some urls but tapping on it must not change the url of the webview as it is not meant to show other thing than the initial text.

It would be great if we could catch the event of tapping a url link in the webview so that we can extract the intent and open the browser application or do any other appropriate action.

For Android, this could be done using shouldOverrideUrlLoading in the WebViewClient.

On iOS, this could be done using webView:decidePolicyForNavigationAction:decisionHandler: of the WKNavigationDelegate of the webview.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions