class Builder
Package: dji.open.pilot.base.ui.model
Description:
ShapeDescriptor builder. Supported since MSDK 5.20.1
Class Members:
method fillColor
Builder fillColor (int color)
Package: dji.open.pilot.base.ui.model
Description:
Sets the background fill color. Supported since MSDK 5.20.1
int color The ARGB color value, such as 0xFF0052CC.
Return:
method cornerRadius
Builder cornerRadius (float dp)
Package: dji.open.pilot.base.ui.model
Description:
Sets the uniform corner radius of the four corners. Supported since MSDK 5.20.1
float dp The corner radius (dp); set to 0 for right angles.
Return:
method cornerRadii
Builder cornerRadii (float [] radii)
Package: dji.open.pilot.base.ui.model
Description:
Sets the individual corner radii of the four corners, which overrides the cornerRadius(float) setting. Supported since MSDK 5.20.1
float[] radii A float array of length 8 (dp), in the order: top-left x, top-left y, top-right x, top-right y, bottom-right x, bottom-right y, bottom-left x, bottom-left y.
Return:
method stroke
Builder stroke (int widthDp, int color)
Package: dji.open.pilot.base.ui.model
Description:
Sets the stroke. Supported since MSDK 5.20.1
int widthDp The stroke width (dp); 0 means no stroke. int color The stroke color (ARGB).
Return:
method shape
Package: dji.open.pilot.base.ui.model
Description:
Sets the shape type. Supported since MSDK 5.20.1
int shape ShapeDescriptor.SHAPE_RECTANGLE or ShapeDescriptor.SHAPE_OVAL.
Return:
method build
Package: dji.open.pilot.base.ui.model
Description:
Builds the ShapeDescriptor instance. Supported since MSDK 5.20.1
Return: