registerFace method
Implementation
@override
Future<bool> registerFace(
String fileUri,
String userId,
String userName,
) async {
try {
final result = await methodChannel.invokeMethod<bool>('registerFace', {
'fileUri': fileUri,
'userId': userId,
'username': userName,
});
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error adding face: ${e.message}');
return false;
}
}