initGazeTracker method

  1. @override
Future<InitializedResult?> initGazeTracker(
  1. String licenseKey,
  2. bool useAttention,
  3. bool useBlink,
  4. bool useDrowsiness,
)
override

Implementation

@override
Future<InitializedResult?> initGazeTracker(String licenseKey,
    bool useAttention, bool useBlink, bool useDrowsiness) async {
  final method = SeeSoPluginMethod.INIT_GAZE_TRACKER.name;
  final Map<String, dynamic> arguments = {
    SeeSoPluginArgumentKey.LICENSE_KEY.name: licenseKey,
    SeeSoPluginArgumentKey.USE_ATTENTION.name: useAttention,
    SeeSoPluginArgumentKey.USE_BLINK.name: useBlink,
    SeeSoPluginArgumentKey.USE_DROWSINESS.name: useDrowsiness,
  };
  final result = await methodChannel.invokeMethod(method, arguments);
  return InitializedResult(result);
}