Skip to main content

Theme

1. Basic Theme

val theme = FingerprintTheme(
companyName = "My Company",
logo = Logo.Url("https://example.com/logo.png"),
color = "#f7cd46"
)

2. Logo from Drawable Resource

val theme = FingerprintTheme(
companyName = "My Company",
logo = Logo.Drawable(R.drawable.logo),
color = "#f7cd46"
)

3. Theme Validation

  • companyName cannot be blank
  • color must be a valid hex color (e.g. #f7cd46)
  • logo URL cannot be blank (if using Logo.Url)
Info

The theme is validated when creating FingerprintTheme - invalid themes will throw IllegalArgumentException.