start method

Implementation

Stream<FaceLivenessEvent> 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) => FaceLivenessEvent.fromMap(result));
}