getUserDescriptorVersion method

Future<Either<String, dynamic>> getUserDescriptorVersion({
  1. required String customId,
  2. required String descriptor,
})

Retrieves the version of a user descriptor.

This method invokes a native method to get the version of a user descriptor based on the provided custom ID and descriptor.

Args: customId (String): The custom ID of the user. descriptor (String): The descriptor whose version is to be retrieved.

Returns: Future<Either<String, dynamic>>: A future that resolves to either a string indicating an error or a dynamic value representing the version of the descriptor.

Implementation

Future<Either<String, dynamic>> getUserDescriptorVersion({
  required String customId,
  required String descriptor,
}) {
  return invokeNativeMethod('SmartfaceEnroller.getUserDescriptorVersion', {
    'arg0': customId,
    'arg1': descriptor,
    'arg2': 'ascii',
  });
}