-
public interface CaptureView.UISettingsSettings 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCaptureView.UISettings.ThemeThe user interface theme.
-
Method Summary
Modifier and Type Method Description abstract UnitsetFlashlightButtonVisible(Boolean isVisible)Shows or hides the flashlight button. abstract BooleanisFlashlightButtonVisible()Checks if the button of flashlight is shown. abstract UnitsetCaptureButtonVisible(Boolean isVisible)Shows or hides the button for taking photo manually. abstract BooleanisCaptureButtonVisible()Checks if the button for taking photo manually is visible. abstract UnitsetGalleryButtonVisible(Boolean isVisible)Shows or hides the button for choosing an image from photo gallery. abstract BooleanisGalleryButtonVisible()Checks if the button for choosing an image from photo gallery is visible. abstract UnitsetTheme(CaptureView.UISettings.Theme theme)Sets chosen theme for the user interface. abstract CaptureView.UISettings.ThemegetTheme()Returns current color theme of the user interface. abstract UnitsetCustomColor(@ColorRes() Integer colorRes)Sets a custom color of the button for manual taking photo. abstract IntegergetCustomColor()Returns defined color of the button for manual taking photo. abstract UnitsetAutoCaptureButtonVisible(Boolean isVisible)Shows or hides the button for automatic capture. abstract BooleanisAutoCaptureButtonVisible()Checks if the button for automatic capture is visible. abstract UnitsetCancelButtonVisible(Boolean isVisible)Shows or hides the cancel button, that closes the view. abstract BooleanisCancelButtonVisible()Checks if the cancel button, that closes the view, is visible. -
-
Method Detail
-
setFlashlightButtonVisible
@MainThread() abstract Unit setFlashlightButtonVisible(Boolean isVisible)
Shows or hides the flashlight button.
- Parameters:
isVisible- This parameter defines if the button for turning the flashlight on should be visible.
-
isFlashlightButtonVisible
@MainThread() abstract Boolean isFlashlightButtonVisible()
Checks if the button of flashlight is shown.
-
setCaptureButtonVisible
@MainThread() abstract Unit setCaptureButtonVisible(Boolean isVisible)
Shows or hides the button for taking photo manually.
- Parameters:
isVisible- This parameter defines if the button for taking photo manually should be visible.
-
isCaptureButtonVisible
@MainThread() abstract Boolean isCaptureButtonVisible()
Checks if the button for taking photo manually is visible.
-
setGalleryButtonVisible
@MainThread() abstract Unit setGalleryButtonVisible(Boolean isVisible)
Shows or hides the button for choosing an image from photo gallery.
- Parameters:
isVisible- This parameter defines if the button should be visible.
-
isGalleryButtonVisible
@MainThread() abstract Boolean isGalleryButtonVisible()
Checks if the button for choosing an image from photo gallery is visible.
-
setTheme
@MainThread()@Deprecated(message = "Theme customization is no longer supported") abstract Unit setTheme(CaptureView.UISettings.Theme theme)
Sets chosen theme for the user interface.
- Parameters:
theme- The chosen color theme of the user interface appearance, represented by a constant of the Theme enumeration.
-
getTheme
@MainThread()@Deprecated(message = "Theme customization is no longer supported") abstract CaptureView.UISettings.Theme getTheme()
Returns current color theme of the user interface.
-
setCustomColor
@MainThread() abstract Unit setCustomColor(@ColorRes() Integer colorRes)
Sets a custom color of the button for manual taking photo.
- Parameters:
colorRes- The custom color resource reference in the integer format
-
getCustomColor
@MainThread() abstract Integer getCustomColor()
Returns defined color of the button for manual taking photo.
-
setAutoCaptureButtonVisible
@MainThread() abstract Unit setAutoCaptureButtonVisible(Boolean isVisible)
Shows or hides the button for automatic capture.
- Parameters:
isVisible- This parameter defines if the button should be visible.
-
isAutoCaptureButtonVisible
@MainThread() abstract Boolean isAutoCaptureButtonVisible()
Checks if the button for automatic capture is visible.
-
setCancelButtonVisible
@MainThread() abstract Unit setCancelButtonVisible(Boolean isVisible)
Shows or hides the cancel button, that closes the view.
- Parameters:
isVisible- This parameter defines if the button should be visible.
-
isCancelButtonVisible
@MainThread() abstract Boolean isCancelButtonVisible()
Checks if the cancel button, that closes the view, is visible.
-
-
-
-