Package-level declarations

Types

Link copied to clipboard
data class AccessibilityStrings(@StringRes val scanCompleted: Int, @StringRes val firstSideScanned: Int, @StringRes val previousPage: Int, @StringRes val nextPage: Int, @StringRes val showHelpScreens: Int, @StringRes val turnFlashlightOff: Int, @StringRes val turnFlashlightOn: Int, @StringRes val exitScanning: Int, @StringRes val flashlightOff: Int, @StringRes val flashlightOn: Int) : Parcelable
Link copied to clipboard
data class BlinkCardSdkStrings(val blinkCardScanningStrings: ScanningStrings, val blinkCardHelpDialogsStrings: HelpDialogsStrings, val blinkCardAccessibilityStrings: AccessibilityStrings) : SdkStrings, Parcelable

Data class contains all the strings used throughout the SDK. Default can be used to keep the original strings if only some of the elements are to be changed.

Link copied to clipboard
open class HelpDialogsStrings(@StringRes val onboardingTitle: Int, @StringRes val onboardingMessage: Int, @StringRes val helpTitles: List<Int>, @StringRes val helpMessages: List<Int>) : Parcelable
Link copied to clipboard
open class ScanningStrings(@StringRes val instructionsFirstSide: Int, @StringRes val instructionsSecondSide: Int, @StringRes val instructionsFlip: Int, @StringRes val instructionsNotFullyVisible: Int, @StringRes val instructionsTilted: Int, @StringRes val instructionsScanningWrongSide: Int, @StringRes val instructionsBlurDetected: Int, @StringRes val instructionsMoveFarther: Int, @StringRes val instructionsMoveCloser: Int, @StringRes val snackbarFlashlightWarning: Int) : Parcelable
Link copied to clipboard
open class SdkStrings(val scanningStrings: ScanningStrings, val helpDialogsStrings: HelpDialogsStrings, val accessibilityStrings: AccessibilityStrings) : Parcelable

Data class contains all the strings used throughout the SDK. Default can be used to keep the original strings if only some of the elements are to be changed.

Link copied to clipboard
object SdkTheme
Link copied to clipboard
data class UiColors(val helpButtonBackground: Color, val helpButton: Color, val helpTooltipBackground: Color, val helpTooltipText: Color)

Data class contains all the text, button, and background colors used throughout the SDK scanning session. Default can be used to keep the original theme colors if only some of the elements are to be changed.

Link copied to clipboard
data class UiTypography(val onboardingTitle: TextStyle, val onboardingText: TextStyle, val onboardingButton: TextStyle, val helpDialogTitle: TextStyle, val helpDialogText: TextStyle, val helpDialogButton: TextStyle, val errorDialogTitle: TextStyle, val errorDialogText: TextStyle, val errorDialogButton: TextStyle, val scanningInstructions: TextStyle, val helpTooltip: TextStyle, val loadingScreen: TextStyle)

Defines the typography used in the verification UI.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val Gray: Color
Link copied to clipboard
Link copied to clipboard
val SdkTypography: (fontFamily: FontFamily?) -> UiTypography
Link copied to clipboard

Functions

Link copied to clipboard
fun BlinkCardSdkTheme(uiSettings: UiSettings, darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit)

Theme used in the entire SDK. Defines colors and strings that are used for all the elements. The theme can be updated by defining UiSettings which customizes all the visual elements.