enrollPrepare method
Prepares the enrollment process for a user.
This method invokes the native method SmartfaceMobile.enrollPrepare
with the provided parameters.
Parameters:
userIdentifier
(required): The unique identifier for the user.groupKeyA
(required): The first group key associated with the user.groupKeyB
(required): The second group key associated with the user.withGlasses
(required): A boolean indicating whether the user is wearing glasses.
Returns:
A Future
that resolves to an Either<String, dynamic>
indicating the result of the enrollment preparation.
Example:
final result = await enrollPrepare(
userIdentifier: 123,
groupKeyA: 456,
groupKeyB: 789,
withGlasses: true,
);
Implementation
Future<Either<String, dynamic>> enrollPrepare({
required BigInt userIdentifier,
required int groupKeyA,
required int groupKeyB,
required bool withGlasses,
}) {
final id = userIdentifier.toString();
return invokeNativeMethod('SmartfaceMobile.enrollPrepare', {
'arg0': id,
'arg1': withGlasses,
'arg2': groupKeyA,
'arg3': groupKeyB,
});
}