Class CutoutConfig
-
- All Implemented Interfaces:
-
java.io.Serializable
public class CutoutConfig implements Serializable
Schema 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 NonNegativeOffsetcropPaddingpublic 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 border in density-independent pixels (dp). voidsetStrokeWidth(Integer strokeWidth)The stroke width of the cutout border in density-independent pixels (dp). 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()The corner radius of the cutout in density-independent pixels (dp). voidsetCornerRadius(Integer cornerRadius)The corner radius of the cutout in density-independent pixels (dp). 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 x/y integer value pair. voidsetOffset(Offset offset)An x/y integer value pair. CutoutConfig.AnimationgetAnimation()Animation type for the cutout when initially displayed. voidsetAnimation(CutoutConfig.Animation animation)Animation type for the cutout when initially displayed. NonNegativeOffsetgetCropPadding()An x/y integer value pair where both values must be >= 0. voidsetCropPadding(NonNegativeOffset cropPadding)An x/y integer value pair where both values must be >= 0. OffsetgetCropOffset()An x/y integer value pair. voidsetCropOffset(Offset cropOffset)An x/y integer value pair. 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. For the optimal ratio for each technical capability have a look at the Technical Capabilities section at documentation.anyline.com.
-
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. For the optimal ratio for each technical capability have a look at the Technical Capabilities section at documentation.anyline.com.
-
getStrokeWidth
Integer getStrokeWidth()
The stroke width of the cutout border in density-independent pixels (dp). If set to 0, the line will be invisible.
-
setStrokeWidth
void setStrokeWidth(Integer strokeWidth)
The stroke width of the cutout border in density-independent pixels (dp). 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()
The corner radius of the cutout in density-independent pixels (dp).
-
setCornerRadius
void setCornerRadius(Integer cornerRadius)
The corner radius of the cutout in density-independent pixels (dp).
-
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).
-
getOffset
Offset getOffset()
An x/y integer value pair. The unit (dp or camera pixels) depends on the property that references this definition.
-
setOffset
void setOffset(Offset offset)
An x/y integer value pair. The unit (dp or camera pixels) depends on the property that references this definition.
-
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
NonNegativeOffset getCropPadding()
An x/y integer value pair where both values must be >= 0. The unit depends on the property that references this definition.
-
setCropPadding
void setCropPadding(NonNegativeOffset cropPadding)
An x/y integer value pair where both values must be >= 0. The unit depends on the property that references this definition.
-
getCropOffset
Offset getCropOffset()
An x/y integer value pair. The unit (dp or camera pixels) depends on the property that references this definition.
-
setCropOffset
void setCropOffset(Offset cropOffset)
An x/y integer value pair. The unit (dp or camera pixels) depends on the property that references this definition.
-
hashCode
int hashCode()
-
-
-
-