protocol_registry 0.0.1-beta.0 copy "protocol_registry: ^0.0.1-beta.0" to clipboard
protocol_registry: ^0.0.1-beta.0 copied to clipboard

outdated

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

example/example.dart

import 'package:protocol_registry/protocol_registry.dart';

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

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
0
pub points
15%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, flutter, http, path, web_socket_channel

More

Packages that depend on protocol_registry