DJI Mobile SDK Documentation

      class Builder

      static class Builder 
      Package:dji.open.pilot.base.ui.model
      Description:

      ShapeDescriptor builder.

      Supported since MSDK 5.20.1

      Class Members:
      method
      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

      Input Parameters:
      int colorThe ARGB color value, such as 0xFF0052CC.
      Return:
      BuilderBuilder instance.
      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

      Input Parameters:
      float dpThe corner radius (dp); set to 0 for right angles.
      Return:
      BuilderBuilder instance.
      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

      Input Parameters:
      float[] radiiA 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:
      BuilderBuilder instance.
      method
      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

      Input Parameters:
      int widthDpThe stroke width (dp); 0 means no stroke.
      int colorThe stroke color (ARGB).
      Return:
      BuilderBuilder instance.
      method
      method shape
      Builder shape(int shape) 
      Package:dji.open.pilot.base.ui.model
      Description:

      Sets the shape type.

      Supported since MSDK 5.20.1

      Input Parameters:
      int shapeShapeDescriptor.SHAPE_RECTANGLE or ShapeDescriptor.SHAPE_OVAL.
      Return:
      BuilderBuilder instance.
      method
      method build
      ShapeDescriptor build() 
      Package:dji.open.pilot.base.ui.model
      Description:

      Builds the ShapeDescriptor instance.

      Supported since MSDK 5.20.1

      Return:
      ShapeDescriptorThe ShapeDescriptor instance.