diff --git a/plugin/README.md b/plugin/README.md index c641438..8e8093e 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -45,6 +45,12 @@ Note: iOS supports all formats except `MAXICODE` and `UPC_EAN_EXTENSION` - using Interface defining the contract for a plugin capable of scanning barcodes. Requires implementation of the scanBarcode method, which initiates a barcode scan with given options. +Starting in Android targetSdk 36, the scanOrientation parameter has no effect for large screens (e.g. tablets) on Android 16 and higher. +You may opt-out of this behavior in your app by adding `` to your `AndroidManifest.xml` inside `` or ``. +Keep in mind though that this opt-out is temporary and will no longer work for Android 17. Android discourages setting specific orientations for large screens. +Regular Android phones are unaffected by this change. +For more information check the Android docs at https://developer.android.com/about/versions/16/behavior-changes-16#adaptive-layouts + ### scanBarcode(...) ```typescript diff --git a/plugin/src/definitions.ts b/plugin/src/definitions.ts index 399f5d7..38ab605 100644 --- a/plugin/src/definitions.ts +++ b/plugin/src/definitions.ts @@ -77,6 +77,13 @@ export type CapacitorBarcodeScannerOptions = { /** * Interface defining the contract for a plugin capable of scanning barcodes. * Requires implementation of the scanBarcode method, which initiates a barcode scan with given options. + * + * Starting in Android targetSdk 36, the scanOrientation parameter has no effect for large screens (e.g. tablets) on Android 16 and higher. + * You may opt-out of this behavior in your app by adding `` to your `AndroidManifest.xml` inside `` or ``. + * Keep in mind though that this opt-out is temporary and will no longer work for Android 17. Android discourages setting specific orientations for large screens. + * Regular Android phones are unaffected by this change. + * For more information check the Android docs at https://developer.android.com/about/versions/16/behavior-changes-16#adaptive-layouts + * */ export interface CapacitorBarcodeScannerPlugin { scanBarcode(options: CapacitorBarcodeScannerOptions): Promise;