confirmScanResult method

Future<void> confirmScanResult([
  1. Map<String, dynamic>? modifiedData
])

當 startFeature 的 needConfirm 為 true 且 isResultPageDisplayable 為 false 時, 必須調用此方法來確認掃描結果

Implementation

Future<void> confirmScanResult([Map<String, dynamic>? modifiedData]) async {
  try {
    await _channel.invokeMethod('confirmScanResult', {
      'modifiedData': modifiedData
    });
  } on PlatformException catch (e) {
    log("Failed to confirm scan result: ${e.message}");
    rethrow;
  }
}