Class CutoutConfig
-
- All Implemented Interfaces:
public class CutoutConfigSchema for SDK Cutout Configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCutoutConfig.AlignmentThe alignment of the cutout area.
public enumCutoutConfig.AnimationAnimation type for the cutout when initially displayed. Values: none, fade, zoom
-
Field Summary
Fields Modifier and Type Field Description public CutoutConfig.Alignmentalignmentpublic Integerwidthpublic StringmaxWidthPercentpublic StringmaxHeightPercentpublic RatioFromSizeratioFromSizepublic IntegerstrokeWidthpublic StringstrokeColorpublic StringfeedbackStrokeColorpublic IntegercornerRadiuspublic StringouterColorpublic DoubleouterAlphapublic Offsetoffsetpublic CutoutConfig.Animationanimationpublic OffsetcropPaddingpublic OffsetcropOffset
-
Constructor Summary
Constructors Constructor Description CutoutConfig()
-
Method Summary
Modifier and Type Method Description CutoutConfig.AlignmentgetAlignment()The alignment of the cutout area. voidsetAlignment(CutoutConfig.Alignment alignment)The alignment of the cutout area. IntegergetWidth()The preferred width in pixels, relating to the camera resolution. voidsetWidth(Integer width)The preferred width in pixels, relating to the camera resolution. StringgetMaxWidthPercent()The maximum width in percent (0-100), relating to the size of the view. voidsetMaxWidthPercent(String maxWidthPercent)The maximum width in percent (0-100), relating to the size of the view. StringgetMaxHeightPercent()The maximum height in percent (0-100), relating to the size of the view. voidsetMaxHeightPercent(String maxHeightPercent)The maximum height in percent (0-100), relating to the size of the view. RatioFromSizegetRatioFromSize()A size constraining the ratio of width / height. voidsetRatioFromSize(RatioFromSize ratioFromSize)A size constraining the ratio of width / height. IntegergetStrokeWidth()The stroke width of the cutout. voidsetStrokeWidth(Integer strokeWidth)The stroke width of the cutout. StringgetStrokeColor()The hex string (RRGGBB) of the stroke color. voidsetStrokeColor(String strokeColor)The hex string (RRGGBB) of the stroke color. StringgetFeedbackStrokeColor()The hex string (RRGGBB) of the stroke color for visual feedback. voidsetFeedbackStrokeColor(String feedbackStrokeColor)The hex string (RRGGBB) of the stroke color for visual feedback. IntegergetCornerRadius()Radius of the corners of the cutout. voidsetCornerRadius(Integer cornerRadius)Radius of the corners of the cutout. StringgetOuterColor()Background color as a 6-digit (RRGGBB) or 8-digit (AARRGGBB) hex string. voidsetOuterColor(String outerColor)Background color as a 6-digit (RRGGBB) or 8-digit (AARRGGBB) hex string. DoublegetOuterAlpha()Optional transparency factor for the outer color (0.0 - 1.0). voidsetOuterAlpha(Double outerAlpha)Optional transparency factor for the outer color (0.0 - 1.0). OffsetgetOffset()An optional offset (in dp) for the elements. voidsetOffset(Offset offset)An optional offset (in dp) for the elements. CutoutConfig.AnimationgetAnimation()Animation type for the cutout when initially displayed. voidsetAnimation(CutoutConfig.Animation animation)Animation type for the cutout when initially displayed. OffsetgetCropPadding()An optional offset (in dp) for the elements. voidsetCropPadding(Offset cropPadding)An optional offset (in dp) for the elements. OffsetgetCropOffset()An optional offset (in dp) for the elements. voidsetCropOffset(Offset cropOffset)An optional offset (in dp) for the elements. StringtoString()inthashCode()booleanequals(Object other)-
-
Method Detail
-
getAlignment
CutoutConfig.Alignment getAlignment()
The alignment of the cutout area.
-
setAlignment
void setAlignment(CutoutConfig.Alignment alignment)
The alignment of the cutout area.
-
getWidth
Integer getWidth()
The preferred width in pixels, relating to the camera resolution. If not specified or 0, the maximum possible width will be chosen.
-
setWidth
void setWidth(Integer width)
The preferred width in pixels, relating to the camera resolution. If not specified or 0, the maximum possible width will be chosen.
-
getMaxWidthPercent
String getMaxWidthPercent()
The maximum width in percent (0-100), relating to the size of the view.
-
setMaxWidthPercent
void setMaxWidthPercent(String maxWidthPercent)
The maximum width in percent (0-100), relating to the size of the view.
-
getMaxHeightPercent
String getMaxHeightPercent()
The maximum height in percent (0-100), relating to the size of the view.
-
setMaxHeightPercent
void setMaxHeightPercent(String maxHeightPercent)
The maximum height in percent (0-100), relating to the size of the view.
-
getRatioFromSize
RatioFromSize getRatioFromSize()
A size constraining the ratio of width / height. If set to 0, the ratio will be equal to the full frame.
-
setRatioFromSize
void setRatioFromSize(RatioFromSize ratioFromSize)
A size constraining the ratio of width / height. If set to 0, the ratio will be equal to the full frame.
-
getStrokeWidth
Integer getStrokeWidth()
The stroke width of the cutout. If set to 0, the line will be invisible.
-
setStrokeWidth
void setStrokeWidth(Integer strokeWidth)
The stroke width of the cutout. If set to 0, the line will be invisible.
-
getStrokeColor
String getStrokeColor()
The hex string (RRGGBB) of the stroke color. (e.g. 00CCFF).
-
setStrokeColor
void setStrokeColor(String strokeColor)
The hex string (RRGGBB) of the stroke color. (e.g. 00CCFF).
-
getFeedbackStrokeColor
String getFeedbackStrokeColor()
The hex string (RRGGBB) of the stroke color for visual feedback. (e.g. 00CCFF).
-
setFeedbackStrokeColor
void setFeedbackStrokeColor(String feedbackStrokeColor)
The hex string (RRGGBB) of the stroke color for visual feedback. (e.g. 00CCFF).
-
getCornerRadius
Integer getCornerRadius()
Radius of the corners of the cutout.
-
setCornerRadius
void setCornerRadius(Integer cornerRadius)
Radius of the corners of the cutout.
-
getOuterColor
String getOuterColor()
Background color as a 6-digit (RRGGBB) or 8-digit (AARRGGBB) hex string.
-
setOuterColor
void setOuterColor(String outerColor)
Background color as a 6-digit (RRGGBB) or 8-digit (AARRGGBB) hex string.
-
getOuterAlpha
Double getOuterAlpha()
Optional transparency factor for the outer color (0.0 - 1.0).
-
setOuterAlpha
void setOuterAlpha(Double outerAlpha)
Optional transparency factor for the outer color (0.0 - 1.0).
-
getAnimation
CutoutConfig.Animation getAnimation()
Animation type for the cutout when initially displayed. Values: none, fade, zoom
-
setAnimation
void setAnimation(CutoutConfig.Animation animation)
Animation type for the cutout when initially displayed. Values: none, fade, zoom
-
getCropPadding
Offset getCropPadding()
An optional offset (in dp) for the elements.
-
setCropPadding
void setCropPadding(Offset cropPadding)
An optional offset (in dp) for the elements.
-
getCropOffset
Offset getCropOffset()
An optional offset (in dp) for the elements.
-
setCropOffset
void setCropOffset(Offset cropOffset)
An optional offset (in dp) for the elements.
-
hashCode
int hashCode()
-
-
-
-