replace Geometry
Replaces the current GeometryEditor.geometry with the specified geometry. Use this method to make changes to the GeometryEditor.geometry that are not directly supported using other GeometryEditor methods. For example, to start a new part in a com.arcgismaps.geometry.Polygon or com.arcgismaps.geometry.Polyline geometry, get the current GeometryEditor.geometry, use a com.arcgismaps.geometry.MultipartBuilder to add the required part, and then pass the updated com.arcgismaps.geometry.GeometryBuilder.toGeometry to this method.
Since
200.1.0
Parameters
The new geometry to replace the current geometry. The com.arcgismaps.geometry.GeometryType of these geometries must match.
Throws
if the geometry type of the new geometry is different to the existing one. Geometries with true curves are not supported
if the geometry editor is not started