question

ramya avatar image
ramya asked ramya commented

How can we hide camera preview for BarcodeScanner in Clover Station Pro(Clover_503)?

Hi,

We are unable to hide camera preview in Clover Station Pro(Clover_503).

This is the code we are using

mBarcodeScanner = new BarcodeScanner(this);
registerBarcodeScanner();
Bundle extras = new Bundle();
extras.putBoolean(Intents.EXTRA_LED_ON, false);
extras.putBoolean(Intents.EXTRA_SHOW_PREVIEW, false);
extras.putBoolean(Intents.EXTRA_SHOW_MERCHANT_PREVIEW, false);
extras.putBoolean(Intents.EXTRA_SHOW_CUSTOMER_PREVIEW, false);
extras.putBoolean(Intents.EXTRA_SHOW_CLOSE_BUTTON, false);
extras.putBoolean(Intents.EXTRA_SHOW_LED_BUTTON, false);
extras.putBoolean(Intents.EXTRA_START_SCAN, true);
extras.putInt(Intents.EXTRA_SCANNER_FACING, 0);
mBarcodeScanner.executeStartScan(extras);

Hiding camera preview working fine in Mini. Can any one please check it.

Thank you.

clover developer communitybarcode scanner
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered ramya commented

This is a bug. There is no workaround. I've filed an internal issue to get it fixed, but I can't give you a time frame.

7 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi Jeffrey,

We are unable to hide camera preview in Station2018 also. Is this issue in All Station devices?

0 Likes 0 ·
It's definitely an issue on Station 2018.
0 Likes 0 ·
ramya avatar image ramya Jeffrey Blattman ♦♦ ·

Is there any possibility to hide camera forcefully with code?

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community