launch static method
Launches the iProov face scan.
You must supply a streamingUrl
and token
. You may also provide options
.
The function returns a Stream<IProovEvent> that will emit events as the scan progresses.
For further details, see https://github.com/iProov/flutter
Implementation
static Stream<IProovEvent> launch({
required String streamingUrl,
required String token,
Options? options,
}) {
_iProovMethodChannel.invokeMethod('launch',
{'streamingURL': streamingUrl, 'token': token, if (options != null) 'optionsJSON': json.encode(options)});
return _iProovListenerEventChannel.receiveBroadcastStream().map((result) => IProovEvent.fromMap(result));
}