Callout class final

A callout shown on top of a GeoViewController.

In map views, callouts are placed by converting the anchor location to screen coordinates. In scene views and local scene views, callout placement follows the LocationToScreenResult.visibility reported by the scene. A callout anchored to a SceneLocationVisibility.visible location is shown at full opacity. For SceneLocationVisibility.hiddenByBaseSurface and SceneLocationVisibility.hiddenByElevation, the callout remains anchored to the reported screen position and is drawn with reduced opacity to indicate that the anchor is obstructed. For SceneLocationVisibility.hiddenByEarth and SceneLocationVisibility.notOnScreen, placement fails and the callout is not shown.

Properties

contentBuilder CalloutWidgetBuilder?
Optional callback used to render custom callout widget content.
getter/setter pair
detail String
The description displayed in the callout.
getter/setter pair
detailExpression String?
The Arcade expression used to populate the callout detail for showCalloutForGeoElement.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style CalloutStyle
The visual style of the callout.
getter/setter pair
title String
The title displayed in the callout.
getter/setter pair
titleExpression String?
The Arcade expression used to populate the callout title for showCalloutForGeoElement.
getter/setter pair

Methods

dismiss({bool animated = true}) → void
Dismisses the callout.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAt(ArcGISPoint location, {String? title, String? detail, CalloutStyle? style, LeaderPosition leaderPosition = .auto, bool animated = true, CalloutWidgetBuilder? contentBuilder}) bool
Shows the callout at the given location.
showCalloutForGeoElement(GeoElement geoElement, {String? title, String? detail, ArcGISPoint? tapLocation, String? titleExpression, String? detailExpression, CalloutStyle? style, LeaderPosition leaderPosition = .auto, bool animated = true, CalloutWidgetBuilder? contentBuilder}) bool
Shows the callout for the given geo-element.
showForLocationDisplay({String? title, String? detail, CalloutStyle? style, LeaderPosition leaderPosition = .auto, bool animated = true, CalloutWidgetBuilder? contentBuilder}) bool
Shows the callout at the current location display position.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited