url_protocol 1.0.0 copy "url_protocol: ^1.0.0" to clipboard
url_protocol: ^1.0.0 copied to clipboard

PlatformWindows

A unified library to register custom URL protocol handlers across all supported platforms.

example/lib/main.dart

import 'dart:io';

import 'package:url_protocol/url_protocol.dart';

void main() {
  // Register a new custom URL protocol handler. Opening test-url-protocol://test
  // will run the executable with the arguments: -url test-url-protocol://test
  registerProtocolHandler('test-url-protocol', arguments: ['-url', '%s']);

  // Unregister and remove custom URL protocol handler
  unregisterProtocolHandler('test-url-protocol');

  exit(0);
}
13
likes
145
pub points
84%
popularity

Publisher

verified publisherloren.dev

A unified library to register custom URL protocol handlers across all supported platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter, win32

More

Packages that depend on url_protocol