public static CaptureView.UISettings
Settings for tuning the user interface appearance.
The elements of the user interface can be customized according to the implementation of your application needs and its design. The buttons for enabling flashlight or manual capturing can be hidden. A special color can be chosen for the main UI elements. Generally two color themes are provided, so you do not need to set the whole interface appearance manually.
@MainThread void setFlashlightButtonVisible(boolean isVisible)
Shows or hides the flashlight button.
isVisible
- This parameter defines if the button for turning the flashlight on should be visible. Settrue to set the button visible and false otherwise.@MainThread boolean isFlashlightButtonVisible()
Checks if the button of flashlight is shown.
@MainThread void setCaptureButtonVisible(boolean isVisible)
Shows or hides the button for taking photo manually.
isVisible
- This parameter defines if the button for taking photo manually should be visible. Set true to setthe button visible and false otherwise.@MainThread boolean isCaptureButtonVisible()
Checks if the button for taking photo manually is visible.
@MainThread void setGalleryButtonVisible(boolean isVisible)
Shows or hides the button for choosing an image from photo gallery.
isVisible
- This parameter defines if the button should be visible. Set true to set the buttonvisible and false otherwise.@MainThread boolean isGalleryButtonVisible()
Checks if the button for choosing an image from photo gallery is visible.
@MainThread void setTheme(@NotNull com.abbyy.mobile.uicomponents.CaptureView.UISettings.Theme theme)
Sets chosen theme for the user interface.
theme
- The chosen color theme of the user interface appearance, represented by a constant of theenum UISettings.Theme
enumeration.@MainThread @NotNull com.abbyy.mobile.uicomponents.CaptureView.UISettings.Theme getTheme()
Returns current color theme of the user interface.
enum UISettings.Theme
object.@MainThread void setCustomColor(@ColorRes @Nullable java.lang.Integer colorRes)
Sets a custom color of the button for manual taking photo.
colorRes
- The custom color resource reference in the integer format@MainThread @Nullable java.lang.Integer getCustomColor()
Returns defined color of the button for manual taking photo.
@MainThread void setAutoCaptureButtonVisible(boolean isVisible)
Shows or hides the button for automatic capture.
isVisible
- This parameter defines if the button should be visible. Set true to set the buttonvisible and false otherwise.@MainThread boolean isAutoCaptureButtonVisible()
Checks if the button for automatic capture is visible.
@MainThread void setCancelButtonVisible(boolean isVisible)
Shows or hides the cancel button, that closes the view.
isVisible
- This parameter defines if the button should be visible. Set true to set the buttonvisible and false otherwise.@MainThread boolean isCancelButtonVisible()
Checks if the cancel button, that closes the view, is visible.