protocol_registry 0.0.5 icon indicating copy to clipboard operation
protocol_registry: ^0.0.5 copied to clipboard

Register/query/remove URI Schemes without hassle. Available for Windows and Linux.

example/example.dart

import 'dart:io';
import 'package:protocol_registry/protocol_registry.dart';

final ProtocolScheme scheme = ProtocolScheme(
  appName: 'Test App',
  scheme: 'some-thing-that-doesnt-exist',
  appPath: Platform.resolvedExecutable,
);

Future<void> main(List<String> args) async {
  /** Get the registry */
  final ProtocolRegistryModel registry = getRegistry();

  /** Query */
  await registry.find(scheme);
  await registry.exists(scheme);

  /** Add */
  await registry.add(scheme);

  /** Remove */
  await registry.remove(scheme);
}
3
likes
130
pub points
31%
popularity

Publisher

unverified uploader

Register/query/remove URI Schemes without hassle. Available for Windows and Linux.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

collection, flutter, path

More

Packages that depend on protocol_registry