protected override MLResult.Code StopAPI() { if (IsScanning) { Task.Run(StopScanningAsync).Wait(); } return(NativeBindings.MLBarcodeScannerDestroy(Handle)); }