bouncer_card_scan_instructions
Center your card in the frame
bouncer_card_scan_security
Your card info is secure
bouncer_enter_card_manually
Enter card manually
bouncer_scanned_wrong_card
Please scan the card ending in %1$s
bouncer_camera_permission_denied_message
Please allow camera access to scan your card
bouncer_camera_permission_denied_ok
OK
bouncer_camera_permission_denied_cancel
Cancel
bouncer_error_camera_title
Camera Problem
bouncer_error_camera_open
The camera failed to turn on
bouncer_error_camera_access
Permission was denied when turning on the camera
bouncer_error_camera_unsupported
This device does not support the required camera features
bouncer_error_camera_acknowledge_button
Close
bouncer_api_key_invalid_title
Network Problem
bouncer_api_key_invalid_message
Sorry, this API key is not valid.
bouncer_api_key_invalid_ok
OK
bouncer_name_and_expiry_initialization_error
Config Problem
bouncer_name_and_expiry_initialization_error_message
Please initialize name/expiry models first in the warmup() function.
bouncer_name_and_expiry_initialization_error_ok
OK
bouncer_cardscan_logo
cardscan.io logo
src/main/res/values/strings.xml
) and define the strings you would like to override. The library will default to the values in your app.src/main/res/values-<locale>/strings.xml
) and define the strings you would like to localize. The library will default to the values in your app for each locale.src/main/res/values-fr/strings.xml
with the following values:bouncerCardPanColor
@android:color/white
bouncerCardPanOutlineColor
@android:color/black
bouncerCardExpiryColor
@android:color/white
bouncerCardExpiryOutlineColor
@android:color/black
bouncerEnterCardManuallyColorDark
@android:color/white
bouncerEnterCardManuallyColorLight
@android:color/black
bouncerInstructionsColorDark
@android:color/white
bouncerInstructionsColorLight
@android:color/black
bouncerSecurityColorDark
@android:color/white
bouncerSecurityColorLight
@android:color/black
bouncerNotFoundBackground
#DD222222
bouncerFoundBackground
#DD222222
bouncerCorrectBackground
#DD222222
bouncerWrongBackground
#DD222222
bouncerNotFoundOutline
#FFFFFF
bouncerFoundOutline
#1E90FF
bouncerCorrectOutline
#2ED573
bouncerWrongOutline
#FF2222
bouncerCloseButtonDarkColor
#FFFFFF
src/main/res/values/colors.xml
) and define the colors you would like to override. The library will default to the values in your app.bouncerViewFinderMargin
16dp
bouncerViewFinderVerticalBias
0.5
bouncerViewFinderHorizontalBias
0.5
bouncerCardDetailsMargin
12dp
bouncerInstructionsMargin
16dp
bouncerSecurityMargin
16dp
bouncerSecurityIconMargin
4dp
bouncerEnterCardManuallyMargin
16dp
bouncerNotFoundOutlineWidth
1
bouncerFoundOutlineWidth
5
bouncerCorrectOutlineWidth
10
bouncerWrongOutlineWidth
10
bouncerPanTextSize
20sp
bouncerPanStrokeSize
2.5
bouncerExpiryTextSize
16sp
bouncerExpiryStrokeSize
2.5
bouncerInstructionsTextSize
22sp
bouncerSecurityTextSize
14sp
bouncerEnterCardManuallyTextSize
18sp
src/main/res/values/dimensions.xml
) and define the dimensions you would like to override. The library will default to the values in your app.bouncer_card_background_not_found
bouncer_card_background_found
bouncer_card_background_correct
bouncer_card_background_wrong
bouncer_card_border_not_found
bouncer_card_border_found
bouncer_card_border_found_long
bouncer_card_border_correct
bouncer_card_border_wrong
bouncer_close_button_dark
bouncer_close_button_light
bouncer_flash_off_dark
bouncer_flash_off_light
bouncer_flash_on_dark
bouncer_flash_on_light
bouncer_lock_dark
bouncer_lock_light
bouncer_logo_dark_background
bouncer_logo_light_background
bouncer_flash_off_dark.xml
. In this example, we replace the lightning bolt with an empty circle.Enter Card Manually
button which will close the scan window and notify the app that the user wishes to enter a card manually.com.getbouncer.scan.framework.Config.displayLogo
a boolean indicating if the logo should be displayedcom.getbouncer.scan.framework.Config.isDebug
a boolean indicating if debug mode should be turned on