initialize method

  1. @override
Future<void> initialize({
  1. required List<RutokenDeviceType> types,
})
override

Implementation

@override
Future<void> initialize({
  required List<RutokenDeviceType> types,
}) async {
  await methodChannel.invokeMethod<String>('initialize', {
    'isUSBEnabled': types.contains(RutokenDeviceType.usb),
    'isBluetoothEnabled': types.contains(RutokenDeviceType.bluetooth),
    'isNFCEnabled': types.contains(RutokenDeviceType.nfc),
  });
}