start method

Implementation

Stream<FaceAuthenticatorEvent> start() {
  Map<String, dynamic> params = new Map();

  params['mobileToken'] = mobileToken;
  params['personId'] = personId;
  params['stage'] = stage;
  params['filter'] = filter;
  params['enableScreenshot'] = enableScreenshot;
  params['enableLoadingScreen'] = enableLoadingScreen;
  params['imageUrlExpirationTime'] = imageUrlExpirationTime;

  _LivenessMethodChannel.invokeMethod('start', params);

  return _LivenessListenerEventChannel.receiveBroadcastStream()
      .map((result) => FaceAuthenticatorEvent.fromMap(result));
}