vasReaderSessionBegin method
Future<void>
vasReaderSessionBegin({
- required List<
NfcVasCommandConfigurationIOS> configurations, - required void didReceive(
- List<
NfcVasResponseIOS> configurations
- List<
- void didBecomeActive()?,
- void didInvalidateWithError(
- NfcReaderSessionErrorIOS error
- String? alertMessage,
DOC:
Implementation
Future<void> vasReaderSessionBegin({
required List<NfcVasCommandConfigurationIOS> configurations,
required void Function(List<NfcVasResponseIOS> configurations) didReceive,
void Function()? didBecomeActive,
void Function(NfcReaderSessionErrorIOS error)? didInvalidateWithError,
String? alertMessage,
}) {
_vasReaderSessionDidBecomeActive = didBecomeActive;
_vasReaderSessionDidInvalidateWithError = didInvalidateWithError;
_vasReaderSessionDidReceive = didReceive;
return hostApi.vasReaderSessionBegin(
configurations: configurations
.map((e) => PigeonNfcVasCommandConfiguration(
mode: PigeonNfcVasCommandConfigurationMode.values.byName(
e.mode.name,
),
passIdentifier: e.passIdentifier,
url: e.url?.toString(),
))
.toList(),
alertMessage: alertMessage,
);
}