init method

  1. @override
Future<InitializedResult> init(
  1. String licenseKey,
  2. GazeTrackerOptions options
)
override

Implementation

@override
Future<InitializedResult> init(
    String licenseKey, GazeTrackerOptions options) async {
  final methodName = EyedidMethodName.initGazeTracker.name;
  final Map<String, dynamic> argumentMap = {
    EyedidArgumentKey.license.name: licenseKey,
    EyedidArgumentKey.useBlink.name: options.useBlink,
    EyedidArgumentKey.useUserStatus.name: options.useUserStatus,
    EyedidArgumentKey.useGazeFilter.name: options.useGazeFilter,
    EyedidArgumentKey.maxConcurrency.name: options.maxConcurrency,
    EyedidArgumentKey.cameraPreset.name: options.preset.name
  };
  final result = await methodChannel.invokeMethod(methodName, argumentMap);
  return InitializedResult(result);
}