url_protocol library
A unified library to register custom URL protocol handlers across supported platforms.
Functions
-
registerProtocolHandler(
String scheme, {String? executable, List< String> ? arguments}) → void -
Registers a protocol by
scheme
to allow for links in the form<scheme>://...
to be processed by this application. By default, opening a link will open the executable that was used to register the scheme with the URL as the first argument passed to the executable. -
unregisterProtocolHandler(
String scheme) → void -
Unregisters the protocol handler with the underlying platform. The provided
scheme
will no longer be used in links.