createKeys method

  1. @override
Future<String?> createKeys(
  1. AndroidConfig config,
  2. IOSConfig config1
)
override

Implementation

@override
Future<String?> createKeys(AndroidConfig config, IOSConfig config1) async {
  try {
    if (Platform.isAndroid) {
      return await methodChannel.invokeMethod<String>(
          'createKeys', config.useStrongBox);
    } else {
      return await methodChannel.invokeMethod<String>('createKeys', config1.useDeviceCredentials);
    }
  } on PlatformException {
    rethrow;
  }
}