FlutterSmartfaceEnrollerPlatform 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
- FlutterSmartfaceEnrollerPlatform
Constructors
- FlutterSmartfaceEnrollerPlatform.new()
-
Factory constructor to return the singleton instance of the class.
If the instance doesn't exist, it creates a new one.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel ↔ MethodChannel
-
A MethodChannel that is used for communication between Flutter and the
native platform. This field is marked as
late
andfinal
, 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.latefinalinherited - name → String
-
The name associated with the platform.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
androidPlatformView(
String viewType, ValueNotifier< bool> isDetachedValueNotifier, ValueNotifier<bool> isLoadingValueNotifier, Widget? faceMaskOverlay, Widget? onLoadingWidget, Map<String, dynamic> creationParams) → Widget -
inherited
-
defaultPermissionUI(
BuildContext context, Future requestPermission(BuildContext)) → Widget -
A default UI widget for handling permission requests.
inherited
-
enrollPrepareWithoutPushing(
{required BigInt userIdentifier, required bool withGlasses}) → Future< Either< String, dynamic> > - Prepares the enrollment process without pushing the data.
-
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), SmartfaceCameraPosition? cameraPosition = SmartfaceCameraPosition.front}) → Widget - Creates a widget for enrolling without server pushing.
-
getUserDescriptorVersion(
{required String customId, required String descriptor}) → Future< Either< String, dynamic> > - Retrieves the version of a user descriptor.
-
invokeNativeMethod(
String methodName, [dynamic arguments]) → Future< Either< String, dynamic> > -
Invokes a native method through the method channel and handles the response.
inherited
-
iosPlatformView(
String viewType, ValueNotifier< bool> isDetachedValueNotifier, ValueNotifier<bool> isLoadingValueNotifier, Widget? faceMaskOverlay, Widget? onLoadingWidget, Map<String, dynamic> creationParams) → Widget -
inherited
-
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, SmartfaceCameraPosition? cameraPosition = SmartfaceCameraPosition.front, 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FlutterSmartfaceEnrollerPlatform
-
A singleton getter that returns the instance of FlutterSmartfaceEnrollerPlatform.
no setter