addGroupKeyA method

Future<Either<String, dynamic>> addGroupKeyA({
  1. required int groupKeyA,
})

Adds a Group Key A to secure storage and invokes the native SmartfaceMobile.addGroupKeyA method.

This method no longer clears the key when the value is 0. To clear/remove the stored key explicitly, call clearGroupKeyA. Passing 0 here will forward 0 to the native layer (ensure this is acceptable in your business logic).

Implementation

Future<Either<String, dynamic>> addGroupKeyA({required int groupKeyA}) async {
  await _secureStorageWrite(
    key: 'groupKeyA',
    value: groupKeyA.toString(),
  );
  return invokeNativeMethod('SmartfaceMobile.addGroupKeyA', {
    'arg0': groupKeyA,
  });
}