iOS Customization

Customize Language

It is possible to configure the experience of the informational messages in the capture frames by changing their language. Use the enumerated type LocaleTypes, which contains the following values:

  • LocaleTypes.PT_BR: for Portuguese(Brazil);

  • LocaleTypes.ES_MX: for Spanish(Mexico);

  • LocaleTypes.ES_ES: for Spanish(Spain);

  • LocaleTypes.EN_US: for English(USA).

See how to implement it in the example below:

[unicoCheck setLocale:EN_US];
  • A remote activation may be required to use this feature. If you wish to use it, please notify your project manager or Unico support.

  • If not configured, by default the SDK uses Portuguese as the primary language.

Customize Capture Experience

This is an optional step, but highly recommended for the capture process to have your company's visual identity.

It is possible to customize some objects of the frame according to the camera mode used, through the setTheme() method.

All methods are available below:

Method
Description

getColorBackground()

Method used to customize the background color of the silhouette.

getColorBackgroundBottomDocument()

Method used to customize the background color of the document capture box.

getColorBoxMessage()

Method used to customize the background color of the message.

getColorIconTakePictureButton()

Method used to customize the icon color of the manual photo capture button.

getColorSilhouetteSuccess()

Method used to customize the success color of the silhouette.

getColorTextBottomDocument()

Method used to customize the text color of the document capture box.

getColorTextMessage()

Method used to customize the text color of the message.

getCancelButtonIconColor() (opcional)

Optional method used to customize the cancel icon color for the Liveness camera with interaction. If not implemented, getColorBackgroundTakePictureButton() will be used.

Here are some examples of how you can use the above methods in your project:

.h:
#import "AcessoBioThemeDelegate.h"

@interface ViewController : UIViewController  {

@end

.m:
#import "ViewController.h"
#import <AcessoBio/AcessoBio.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    unicoCheck = [[AcessoBioManager alloc]initWithViewController:self];
}

- (id)getColorBackground {
    code
}

- (id)getColorBackgroundBottomDocument {
    code
}

- (id)getColorBoxMessage {
    code
}

- (id)getColorIconTakePictureButton {
    code
}

- (id)getColorSilhouetteSuccess {
    code
}

- (id)getColorTextBottomDocument {
    code
}

- (id)getColorTextMessage {
    code
}

- (id) getCancelButtonIconColor {
    code
}

@end

Last updated

Was this helpful?