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];unicoCheck.setLocale(.EN_US);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.
The supported types for color representation are Color Resource or String containing the hexadecimal color code. For example: R.color.red or #FF0000.
All methods are available below:
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
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! {
code
}
func getColorBoxMessage() -> Any! {
code
}
func getColorTextMessage() -> Any! {
code
}
func getColorIconTakePictureButton() -> Any! {
code
}
func getColorBackgroundBottomDocument() -> Any! {
code
}
func getColorTextBottomDocument() -> Any! {
code
}
func getColorSilhouetteSuccess() -> Any! {
code
}
func getCancelButtonIconColor() -> Any! {
code
}
} Last updated
Was this helpful?