registerProtocolHandler method

void registerProtocolHandler(
  1. String scheme,
  2. String url
)

The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (aka protocols).

For example, this API lets webmail sites open mailto: URLs, or VoIP sites open tel: URLs.

Implementation

external void registerProtocolHandler(
  String scheme,
  String url,
);