exportImage method
Exports an image snapshot of the current GeoViewController.
The exported image contains the currently visible content of the
ArcGISMapViewController or SceneView
. Elements drawn on top of the
GeoViewController, such as callouts or popups, are not exported. You can
check GeoViewController.drawStatus to confirm that drawing is complete
before calling this method.
Return Value: A task that returns the type ArcGISImage
.
Implementation
Future<ArcGISImage> exportImage() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeoView_exportImageAsync(_handle, errorHandler);
});
return taskHandle.toFuture((element) => element.getValueAsArcGISImage()!);
}