public class ShutterButton
Customizable Button which provides 2 states (Manual and Auto)
public static io.scanbot.sdk.ui.camera.ShutterButton.Companion Companion
public ShutterButton(@NotNull
android.content.Context context,
@NotNull
android.util.AttributeSet attrs)
Customizable Button which provides 2 states (Manual and Auto)
public void setShutterButtonAutoInnerColor(@ColorInt
int color)
Sets color for button inner elements in AutoMode
public void setShutterButtonAutoOuterColor(@ColorInt
int color)
Sets color for button background in AutoMode
public void setShutterButtonManualInnerColor(@ColorInt
int color)
Sets color for button inner elements in ManualMode
public void setShutterButtonManualOuterColor(@ColorInt
int color)
Sets color for button background in ManualMode
public void setManualButtonDrawable(@NotNull
android.graphics.drawable.Drawable drawable)
Sets drawable for button in ManualMode
protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
protected void onDetachedFromWindow()
public void showManualButton()
Shows button in ManualMode. Stops Animation.
public void showAutoButton()
Shows button in AutoMode. Starts Animation.