Configurations
This section describes the available NFC configurations.
// NFC configurations
val nfcTexts = NFC()
nfcTexts.nfcTitle = "Ready to Scan"
nfcTexts.nfcDescription = "Hold the passport close to the phone"
val ctaTexts = CTA()
ctaTexts.settings = "Settings"
ctaTexts.skip = "Skip"
val translations = Translations()
translations.nfc = nfcTexts
translations.cta = ctaTexts
val colors = Colors()
colors.primary = "#4880FF"
colors.secondary = "#F2F6FF"
val nfcCustomization = NFCustomization()
nfcCustomization.translations = translations
nfcCustomization.colors = colors
// Scanner configurations
val style = CaptureStyleOptions(
textColor = R.color.black,
textBackground = R.color.white,
overlayColor = R.color.black,
overlaySuccessColor = R.color.white,
)
val texts = CaptureTextOptions(title = "Insert a card", text = "inside the frame")
val photoOptions = ManualPhotoOptions(active = false)
val scannerCustomization = CaptureOptions(takePhoto = photoOptions, i18n = texts, style = style)Models
NFCustomization
Description
Translations
Description
CTA
Description
NFC
Description
Colors
Description
Configurations
Was this helpful?