1.0.3 • Published 9 months ago

capacitor-plugin-linkhandler v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

capacitor-plugin-linkhandler

This Plugin provides an Event Listener that executes when a user clicks on an link (href) in the App. The Event Listener helps to unify and handle Links Actions, for example to prevent that users leave your app. The event listener fires every time a user clicks on an anchor tag. The standard capacitor method that opens the link in the standard browser will be aborted. See the docs for more information:

Install

npm install capacitor-plugin-linkhandler
npx cap sync

API

addListener('urlOpen', ...)

addListener(eventName: "urlOpen", listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle>
ParamType
eventName'urlOpen'
listenerFuncUrlChangeListener

Returns: Promise<PluginListenerHandle>


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

UrlEvent

PropTypeDescriptionSince
urlstringEmit when the url changes0.0.1

Type Aliases

UrlChangeListener

(state: UrlEvent): void

1.0.3

9 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago