configure method

  1. @override
Future<void> configure(
  1. FacePingOptions options
)
override

Sets the native FacePing up (returns at once; the models load in the background).

Implementation

@override
Future<void> configure(FacePingOptions options) {
  _listen();
  return _call(() => _api.configure(NativeOptions(
        sandboxKey: options.sandboxKey,
        deviceToken: options.deviceToken,
        apiBaseUrl: options.apiBaseUrl,
        passiveLiveness: options.passiveLiveness,
        autoSyncSeconds: options.autoSyncInterval?.inSeconds,
      )));
}