Toolbar
- Change the size of the toolbar (the area where the buttons are located):
DocumentReader.Instance().Customization().Edit().SetToolbarSize((Java.Lang.Float)46.0F).Apply();
RGLDocReader.Shared.Customization.ToolbarSize = 46.0F;
Torch
- Show/hide the Torch icon:
DocumentReader.Instance().Functionality().Edit().SetShowTorchButton(true).Apply();
RGLDocReader.Shared.Functionality.ShowTorchButton = true;
- Change the Torch icon for both ON and OFF states:
// For the ON state
DocumentReader.Instance().Customization().Edit().SetTorchImageOn(GetDrawable(Resource.Drawable.icon)).Apply();
// For the OFF state
DocumentReader.Instance().Customization().Edit().SetTorchImageOff(GetDrawable(Resource.Drawable.icon)).Apply();
// For the ON state
RGLDocReader.Shared.Customization.TorchButtonOnImage = UIImage.FromBundle("Image");
// For the OFF state
RGLDocReader.Shared.Customization.TorchButtonOffImage = UIImage.FromBundle("Image");
Close
- Show/hide the Close icon:
DocumentReader.Instance().Functionality().Edit().SetShowCloseButton(true).Apply();
RGLDocReader.Shared.Functionality.ShowCloseButton = true;
Info
You can close the camera view manually by using the stopScanner() function.
- Change the Close icon:
DocumentReader.Instance().Customization().Edit().SetCloseButtonImage(GetDrawable(Resource.Drawable.icon)).Apply();
RGLDocReader.Shared.Customization.CloseButtonImage = UIImage.FromBundle("Image");
Capture
Tapping the Capture button enables taking a picture and processing it as a single frame.
- Show/hide the Capture button:
DocumentReader.Instance().Functionality().Edit().SetShowCaptureButton(true).Apply();
RGLDocReader.Shared.Functionality.ShowCaptureButton = true;
- Set a time interval between the document detection moment and the Capture button appearance. By default, it is 5 seconds:
DocumentReader.Instance().Functionality().Edit().SetShowCaptureButtonDelayFromDetect(5).Apply();
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:
DocumentReader.Instance().Functionality().Edit().SetShowCaptureButtonDelayFromStart(10).Apply();
RGLDocReader.Shared.Functionality.ShowCaptureButtonDelayFromStart = 10;
- Change the Capture icon:
DocumentReader.Instance().Customization().Edit().SetCaptureButtonImage(GetDrawable(Resource.Drawable.icon)).Apply();
RGLDocReader.Shared.Customization.CaptureButtonImage = UIImage.FromBundle("Image");
Camera Frame Switch
- Show/hide the Change Frame icon:
DocumentReader.Instance().Functionality().Edit().SetShowChangeFrameButton(true).Apply();
RGLDocReader.Shared.Functionality.ShowChangeFrameButton = true;
- Change the Change Frame icon for both ON and OFF states:
// For the ON state
DocumentReader.Instance().Customization().Edit().SetChangeFrameExpandButtonImage(GetDrawable(Resource.Drawable.icon)).Apply();
// For the OFF state
DocumentReader.Instance().Customization().Edit().SetChangeFrameCollapseButtonImage(GetDrawable(Resource.Drawable.icon)).Apply();
// For the ON state
RGLDocReader.Shared.Customization.ChangeFrameButtonExpandImage = UIImage.FromBundle("Image");
// For the OFF state
RGLDocReader.Shared.Customization.ChangeFrameButtonCollapseImage = UIImage.FromBundle("Image");
Camera Switch
- Show/hide the Switch Camera button:
DocumentReader.Instance().Functionality().Edit().SetShowCameraSwitchButton(true).Apply();
RGLDocReader.Shared.Functionality.ShowCameraSwitchButton = true;
- Change the Camera Switch icon:
DocumentReader.Instance().Customization().Edit().SetCameraSwitchButtonImage(GetDrawable(Resource.Drawable.icon)).Apply();
RGLDocReader.Shared.Customization.CameraSwitchButtonImage = UIImage.FromBundle("Image");