enrollPrepareWithoutPushing method
Prepares the enrollment process without pushing the data.
This method invokes the native method SmartfaceEnroller.enrollPrepare
with the provided
user identifier and glasses preference.
userIdentifier
is the unique identifier for the user.
withGlasses
indicates whether the user is wearing glasses.
Returns a Future that completes with an Either
containing a String error message
or a dynamic result.
Implementation
Future<Either<String, dynamic>> enrollPrepareWithoutPushing({
required BigInt userIdentifier,
required bool withGlasses,
}) {
final id = userIdentifier.toString();
return invokeNativeMethod('SmartfaceEnroller.enrollPrepare', {
'arg0': id,
'arg1': withGlasses,
});
}