Skip to main content

Customization

Capture flow availability

These customizations are only available when the capture flow is document-capture or liveness.

The iOS SDK supports two dimensions of customization: language and colors.

Language

Configure the language of informational messages in the capture frames via the setLocale method. Use the LocaleTypes enum:

  • LocaleTypes.PT_BR — Portuguese (Brazil)
  • LocaleTypes.ES_MX — Spanish (Mexico)
  • LocaleTypes.ES_ES — Spanish (Spain)
  • LocaleTypes.EN_US — English (USA)
unicoCheck.setLocale(.EN_US)
info
  • A remote activation may be required to use this feature. If you wish to use it, notify your project manager or Unico support.
  • If not configured, the SDK uses Portuguese as the default language.

Refer to API Reference > Enums for the full list of supported LocaleTypes values.

Colors

Apply a custom theme by implementing the AcessoBioThemeDelegate and calling setTheme(self) on the AcessoBioManager. Color values can be passed as a Color Resource (R.color.your_color) or a hexadecimal String ("#FF0000").

MethodWhat it customizes
getColorBackground()Background color of the silhouette
getColorBackgroundBottomDocument()Background color of the document capture box
getColorBoxMessage()Background color of the message box
getColorIconTakePictureButton()Icon color of the manual photo capture button
getColorSilhouetteSuccess()Silhouette color when capture succeeds
getColorTextBottomDocument()Text color of the document capture box
getColorTextMessage()Text color inside the message box
getCancelButtonIconColor() (optional)Cancel icon color for the Liveness camera with interaction. If not implemented, getColorBackgroundTakePictureButton() is used.
import UIKit
import AcessoBio

class ViewController: UIViewController, AcessoBioManagerDelegate, AcessoBioThemeDelegate {
var unicoCheck: AcessoBioManager!

override func viewDidLoad() {
super.viewDidLoad()
unicoCheck = AcessoBioManager(viewController: self)
unicoCheck.setTheme(self)
}

func getColorBackground() -> Any! { /* return color */ }
func getColorBoxMessage() -> Any! { /* return color */ }
func getColorTextMessage() -> Any! { /* return color */ }
func getColorIconTakePictureButton() -> Any! { /* return color */ }
func getColorBackgroundBottomDocument() -> Any! { /* return color */ }
func getColorTextBottomDocument() -> Any! { /* return color */ }
func getColorSilhouetteSuccess() -> Any! { /* return color */ }
func getCancelButtonIconColor() -> Any! { /* return color */ }
}
Customization scope

No other customization dimensions are available. Custom UI behavior and layout are not offered by the native iOS SDK. If you need a proprietary UI, refer to the Capture Standard option (headless API integration).