# FlutterSmartfaceMobilePlatform class

An abstract class that extends PlatformInterface to define the platform-specific implementation for the Flutter Smartface plugin.

This class serves as the base for all platform-specific implementations and ensures that the correct platform interface is used.

Inheritance
  - Object
  - PlatformInterface
  - FlutterSmartfaceBasePlatform
  - FlutterSmartfaceMobilePlatform

## Constructors

FlutterSmartfaceMobilePlatform()
  Constructs a FlutterSmartfaceMobilePlatform.

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
methodChannel ↔ MethodChannel
  A MethodChannel that is used for communication between Flutter and the native platform. This field is marked as `late` and `final`, meaning it will be initialized later and cannot be reassigned. The `@visibleForTesting` annotation indicates that this field is intended to be visible only for testing purposes.
  late final inherited
name → String
  The name associated with the platform.
  final inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

addGroupKeyA({required int groupKeyA}) → Future<Either<String, dynamic>>
  Adds a group key A to the secure storage and invokes the corresponding native method.
addGroupKeyB({required int groupKeyB}) → Future<Either<String, dynamic>>
  Adds a group key B to the secure storage and invokes the corresponding native method.
closeCamera() → Future<void>
  Closes the camera by invoking the 'closeActivity' method on the method channel.
defaultPermissionUI(BuildContext context, Future requestPermission(BuildContext)) → Widget
  A default UI widget for handling permission requests.
  inherited
enrollFinishActivity({required bool withGlasses, dynamic onPercentageChanged(dynamic)?, dynamic onPushing(dynamic)?, dynamic onCompleted(dynamic)?, dynamic onFailed(dynamic)?}) → Future<void>
  Completes the enrollment activity with the specified parameters.
enrollFinishWithoutPushingActivity({required bool withGlasses, dynamic onPercentageChanged(dynamic)?, dynamic onCompleted(Map<String, dynamic>)?, dynamic onFailed(dynamic)?}) → Future<void>
  Completes the enrollment process without pushing the activity to the server.
enrollPrepare({required int userIdentifier, required int groupKeyA, required int groupKeyB, required bool withGlasses}) → Future<Either<String, dynamic>>
  Prepares the enrollment process for a user.
enrollWidget({required bool withGlasses, required dynamic onPercentageChanged(dynamic), required dynamic onCountdownStarted(dynamic), required dynamic onPushing(dynamic), required dynamic onCompleted(dynamic), required dynamic onFailed(dynamic), required Widget customPermissionBuilder(dynamic), required Widget onLoadingWidget, required Widget faceMaskOverlay, required Stack builder(Widget, FlutterSmartfacePlatformCameraController)}) → Widget
  Creates a widget for enrolling with various callbacks and customizations.
enrollWithoutServerPushingWidget({required bool withGlasses, required dynamic onPercentageChanged(dynamic), required dynamic onCountdownStarted(dynamic), required dynamic onCompleted(Map<String, dynamic>), required dynamic onFailed(dynamic), required Widget customPermissionBuilder(dynamic), required Widget onLoadingWidget, required Widget faceMaskOverlay, required Stack builder(Widget, FlutterSmartfacePlatformCameraController)}) → Widget
  Creates a widget for enrolling without server pushing.
fetchAllFromServer() → Future<Either<String, dynamic>>
  Fetches all data from the server.
fetchFromServer() → Future<void>
  Fetches data from the server by invoking a native method.
fetchUser(int id) → Future<void>
  Fetches user data from the native platform.
getMaxUsers() → Future<int>
  Asynchronously retrieves the maximum number of users from the native platform.
getThreshold() → Future<double>
  Retrieves the security threshold from the native platform.
getTotalUsers() → Future<int>
  Retrieves the total number of users from the native platform.
getUsers() → Future<Either<String, dynamic>>
  Fetches the list of users from the native platform.
getValueFromSecureStorage({required String key}) → Future<String?>
  Retrieves a value from secure storage for the given key.
identify({dynamic onIdentify(dynamic)?}) → Future<void>
  Identifies an activity and invokes the provided callback upon completion.
identifyWidget({required dynamic onIdentify(dynamic), required Widget customPermissionBuilder(dynamic), dynamic onFps(dynamic)?, required Center onLoadingWidget, required Widget faceMaskOverlay, required Stack builder(Widget, FlutterSmartfacePlatformCameraController)}) → Widget
  Creates a widget for identifying faces with various customization options.
invokeNativeMethod(String methodName, [dynamic arguments]) → Future<Either<String, dynamic>>
  Invokes a native method through the method channel and handles the response.
  inherited
liveness({dynamic onLiveness(dynamic)?}) → Future<void>
  Initiates the liveness detection activity.
livenessWidget({required dynamic onLiveness(dynamic), required dynamic onFps(dynamic), required double livenessThreshold, required Widget customPermissionBuilder(dynamic), required Widget onLoadingWidget, required Widget faceMaskOverlay, required Stack builder(Widget, FlutterSmartfacePlatformCameraController)}) → Widget
  Creates a widget for liveness detection with various customizable parameters.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
platformViewLink({dynamic onIdentify(dynamic)?, dynamic onPercentageChanged(dynamic)?, dynamic onPushing(dynamic)?, dynamic onCompleted(dynamic)?, dynamic onFailed(dynamic)?, dynamic onCountdownStarted(dynamic)?, dynamic onLiveness(dynamic)?, dynamic onFps(dynamic)?, Widget? onLoadingWidget, Widget? faceMaskOverlay, required Widget builder(Widget, FlutterSmartfacePlatformCameraController), Widget customPermissionBuilder(Future (BuildContext))?, Map<String, dynamic> creationParams = const {}, required String viewType}) → Widget
  Creates a platform view link widget with various callback functions for handling different events and optional widgets for loading and face mask overlay.
  inherited
registerCallback(String method, dynamic callback(dynamic)) → void
  Registers a callback for a specific method.
  inherited
removeUser({required int id}) → Future<Either<String, dynamic>>
  Removes a user with the given ID.
saveUserCustomIdentifier({int? userCustomIdentifier}) → Future<Either<String, dynamic>>
  Saves a custom identifier for the user to secure storage.
setCredentials({required String user, required String password, required int clientIdentifier}) → Future<Either<String, dynamic>>
  Sets the user credentials and stores them securely.
setThreshold(double threshold) → Future<void>
  Sets the security threshold for the Smartface Mobile platform.
setValueToSecureStorage({required String key, required String value}) → Future<void>
  Writes a key-value pair to secure storage.
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited