Toolbar
- Change the size of the toolbar (the area where the buttons are located):
DocReader.shared.customization.toolbarSize = 46.0
[RGLDocReader shared].customization.toolbarSize = 46.0;
Torch
- Show/hide the Torch icon:
DocReader.shared.functionality.showTorchButton = true
[RGLDocReader shared].functionality.showTorchButton = YES;
- Change the Torch icon for both ON and OFF states:
// For the ON state
DocReader.shared.customization.torchButtonOnImage = UIImage(named: "icon")
// For the OFF state
DocReader.shared.customization.torchButtonOffImage = UIImage(named: "icon")
// For the ON state
[RGLDocReader shared].customization.torchButtonOnImage = [UIImage imageNamed:@"icon"];
// For the OFF state
[RGLDocReader shared].customization.torchButtonOffImage = [UIImage imageNamed:@"icon"];
Close
- Show/hide the Close icon:
DocReader.shared.functionality.showCloseButton = true
[RGLDocReader shared].functionality.showCloseButton = YES;
Info
You can close the camera view manually by using the DocReader.shared.stopScanner() function.
- Change the Close icon:
DocReader.shared.customization.closeButtonImage = UIImage(named: "icon")
[RGLDocReader shared].customization.closeButtonImage = [UIImage imageNamed:@"icon"];
Capture
Tapping the Capture button enables taking a picture and processing it as a single frame.
- Show/hide the Capture button:
DocReader.shared.functionality.showCaptureButton = true
[RGLDocReader shared].functionality.showCaptureButton = YES;
- Set a time interval between the document detection moment and the Capture button appearance. By default, it is 5 seconds:
DocReader.shared.functionality.showCaptureButtonDelayFromDetect = 5
[RGLDocReader shared].functionality.showCaptureButtonDelayFromDetect = 5;
- Set a time interval between the scanning process start and the Capture button appearance. By default, it is 10 seconds:
DocReader.shared.functionality.showCaptureButtonDelayFromStart = 10
[RGLDocReader shared].functionality.showCaptureButtonDelayFromStart = 10;
- Change the Capture icon:
DocReader.shared.customization.captureButtonImage = UIImage(named: "icon")
[RGLDocReader shared].customization.captureButtonImage = [UIImage imageNamed:@"icon"];
Camera Frame Switch
- Show/hide the Change Frame icon:
DocReader.shared.functionality.showChangeFrameButton = true
[RGLDocReader shared].functionality.showChangeFrameButton = YES;
- Change the Change Frame icon for both ON and OFF states:
// For the ON state
DocReader.shared.customization.changeFrameButtonExpandImage = UIImage(named: "icon")
// For the OFF state
DocReader.shared.customization.changeFrameButtonCollapseImage = UIImage(named: "icon")
// For the ON state
[RGLDocReader shared].customization.changeFrameButtonExpandImage = [UIImage imageNamed:@"icon"];
// For the OFF state
[RGLDocReader shared].customization.changeFrameButtonCollapseImage = [UIImage imageNamed:@"icon"];
Camera Switch
- Show/hide the Switch Camera button:
DocReader.shared.functionality.showCameraSwitchButton = true
[RGLDocReader shared].functionality.showCameraSwitchButton = YES;
- Change the Camera Switch icon:
DocReader.shared.customization.cameraSwitchButtonImage = UIImage(named: "icon")
[RGLDocReader shared].customization.cameraSwitchButtonImage = [UIImage imageNamed:@"icon"];