Package io.scanbot.sdk.ui.camera
Class ShutterButton
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
public final class ShutterButton extends FrameLayout
Customizable Button which provides 2 states (Manual and Auto)
-
-
Constructor Summary
Constructors Constructor Description ShutterButton(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description final Unit
setShutterButtonAutoInnerColor(Integer color)
Sets color for button inner elements in AutoMode final Unit
setShutterButtonAutoOuterColor(Integer color)
Sets color for button background in AutoMode final Unit
setShutterButtonManualInnerColor(Integer color)
Sets color for button inner elements in ManualMode final Unit
setShutterButtonManualOuterColor(Integer color)
Sets color for button background in ManualMode final Unit
setManualButtonDrawable(Drawable drawable)
Sets drawable for button in ManualMode final Unit
showManualButton()
Shows button in ManualMode. final Unit
showAutoButton()
Shows button in AutoMode. -
-
Constructor Detail
-
ShutterButton
ShutterButton(Context context, AttributeSet attrs)
-
-
Method Detail
-
setShutterButtonAutoInnerColor
final Unit setShutterButtonAutoInnerColor(Integer color)
Sets color for button inner elements in AutoMode
-
setShutterButtonAutoOuterColor
final Unit setShutterButtonAutoOuterColor(Integer color)
Sets color for button background in AutoMode
-
setShutterButtonManualInnerColor
final Unit setShutterButtonManualInnerColor(Integer color)
Sets color for button inner elements in ManualMode
-
setShutterButtonManualOuterColor
final Unit setShutterButtonManualOuterColor(Integer color)
Sets color for button background in ManualMode
-
setManualButtonDrawable
final Unit setManualButtonDrawable(Drawable drawable)
Sets drawable for button in ManualMode
-
showManualButton
final Unit showManualButton()
Shows button in ManualMode. Stops Animation.
-
showAutoButton
final Unit showAutoButton()
Shows button in AutoMode. Starts Animation.
-
-
-
-