hunk.code_window: <PlatformsSection android emulator ios simulator />
   ## Installation
   <APIInstallSection href="https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.mdx#react-native-webview-getting-started-guide" />
   ## Usage
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit: <APIInstallSection href="https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md#react-native-webview-getting-started-guide" />
  
hunk.file_path: docs/pages/versions/v45.0.0/sdk/webview.mdx
hunk.type: replace
file: package expo.modules.camera.tasks
  
  import android.os.AsyncTask
  
  import expo.modules.interfaces.barcodescanner.BarCodeScannerInterface
  import expo.modules.interfaces.barcodescanner.BarCodeScannerResult
  
  class BarCodeScannerAsyncTask(
    private val delegate: BarCodeScannerAsyncTaskDelegate,
    private val barCodeScanner: BarCodeScannerInterface,
    private val imageData: ByteArray,
    private val width: Int,
    private val height: Int,
    private val rotation: Int
  ) : AsyncTask<Void?, Void?, BarCodeScannerResult?>() {
    override fun doInBackground(vararg params: Void?) = if (!isCancelled) {
      barCodeScanner.scan(imageData, width, height, rotation)
    } else null
  
    override fun onPostExecute(result: BarCodeScannerResult?) {
      super.onPostExecute(result)
      result?.let {
        delegate.onBarCodeScanned(result)
      }
      delegate.onBarCodeScanningTaskCompleted()
    }
  }
  