scard_watcher 0.0.1 copy "scard_watcher: ^0.0.1" to clipboard
scard_watcher: ^0.0.1 copied to clipboard

PlatformmacOS

A Flutter plugin for watching smart cards insertion and removal.

scard_watcher #

A Flutter plugin for watching smart cards insertion and removal.

Android iOS MacOS Web Linux Windows
X X V X X X

Usage #

To use this plugin, add scard_watcher as a dependency in your pubspec.yaml file.

Example #

class _MyAppState extends State<MyApp> implements ScardWatcherListener {
  final _scardWatcherPlugin = ScardWatcher();

  @override
  void initState() {
    super.initState();
    _scardWatcherPlugin.addListener(this);
  }

  @override
  Future<void> scardDidInsert(String readerName) async {
    print('scardDidInsert: $readerName');
    final details = await _scardWatcherPlugin.getSmartCardDetails(readerName);
    print('Details: ${details.toString()}');
  }

  @override
  Future<void> scardDidRemove(String readerName) async {
    print('scardDidRemove: $readerName');
  }
}

See the example app for more complex examples.

1
likes
140
pub points
12%
popularity

Publisher

verified publisherauthentrend.com

A Flutter plugin for watching smart cards insertion and removal.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on scard_watcher