WalletBranding

The wallet UI's brand settings: the app's name, the brand typeface, each credential's card face and the app's own credential types. Apps normally set all of it at once with WalletBrand.use.

Brand-neutral by default: doctypes without a registered face get the SDK's neutral face. Call install once before the first SDK screen shows (the SDK screens also call it themselves), so every SDK sheet (presenting, consent) uses the same name, theme and card art.

Properties

Link copied to clipboard

The wallet's name on the consent and presentment sheets.

Link copied to clipboard

The background behind the wallet screens. Set it to your app's page colour when the wallet sits inside your own screens, so your bars and the wallet meet without a seam. Set it before the first screen shows (Swift: setBackgroundColor).

Link copied to clipboard

Card faces by doctype (see CardFace); other doctypes get the neutral face.

Link copied to clipboard

The app's own credential types, so their values render with the right labels and formats.

Link copied to clipboard

The brand typeface, applied to theme's type scale and to card-face text. Null = platform default. Kotlin only; apps without a Compose font family set fonts instead.

Link copied to clipboard

The brand typeface as font files: one BrandFont per weight (TTF/OTF bytes, e.g. read from the app bundle). Sets fontFamily; empty = the platform typeface.

Link copied to clipboard

The brand colour: buttons, icons and progress. Set it before the first screen shows (Swift: setPrimaryColor).

Link copied to clipboard
val theme: @Composable (content: @Composable () -> Unit) -> Unit

The SDK's Material theme (palette + typography); wrap your own screens in it to match.

Link copied to clipboard

Material 3 typography in the brand typeface, for apps that build their own MaterialTheme.

Functions

Link copied to clipboard
fun install()

Makes this brand the SDK's current branding. Idempotent; safe to call from every entry point.

Link copied to clipboard

Sets backgroundColor from an ARGB value (0xAARRGGBB, e.g. 0xFFF7F6FA).

Link copied to clipboard

Sets primaryColor from an ARGB value (0xAARRGGBB, e.g. 0xFF4361DF).