public static final class

Callout.ShowOptions

extends Object
java.lang.Object
   ↳ com.esri.arcgisruntime.mapping.view.Callout.ShowOptions

Class Overview

Encapsulates a set of parameters that control how a callout is shown and dismissed. The parameters are:

  • animateCallout - if this is true, the callout appears to grow out of its anchor point when it's shown and shrink back into its anchor point when it's dismissed
  • recenterMap - if this is true, the MapView is recentered on the callout location when the callout is shown
  • animateRecenter - if this and recenterMap are both true, animation of the MapView is used when recentering the MapView when the callout is shown
The default value of each of these parameters is false.

Summary

Public Constructors
ShowOptions()
Constructor that allows all the parameters to take their default values.
ShowOptions(boolean animateCallout, boolean recenterMap, boolean animateRecenter)
Constructor that specifies values for each of the parameters.
Public Methods
boolean isAnimateCallout()
Gets the value of the animateCallout parameter.
boolean isAnimateRecenter()
Gets the value of the animateRecenter parameter.
boolean isRecenterMap()
Gets the value of the recenterMap parameter.
void setAnimateCallout(boolean animateCallout)
Sets the value of the animateCallout parameter.
void setAnimateRecenter(boolean animateRecenter)
Sets the value of the animateRecenter parameter.
void setRecenterMap(boolean recenterMap)
Sets the value of the recenterMap parameter.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ShowOptions ()

Constructor that allows all the parameters to take their default values.

public ShowOptions (boolean animateCallout, boolean recenterMap, boolean animateRecenter)

Constructor that specifies values for each of the parameters.

Parameters
animateCallout true to make the callout appear to grow out of its anchor point when it's shown and shrink back into its anchor point when it's dismissed
recenterMap true to recenter the MapView on the callout location when the callout is shown
animateRecenter true to specify animation of the recentering of the MapView when the callout is shown

Public Methods

public boolean isAnimateCallout ()

Gets the value of the animateCallout parameter.

Returns
  • true if animation of the callout is set

public boolean isAnimateRecenter ()

Gets the value of the animateRecenter parameter.

Returns
  • true if animation of the recentering of the MapView is set

public boolean isRecenterMap ()

Gets the value of the recenterMap parameter.

Returns
  • true if recentering of the MapView is set

public void setAnimateCallout (boolean animateCallout)

Sets the value of the animateCallout parameter.

Parameters
animateCallout true to make the callout appear to grow out of its anchor point when it's shown and shrink back into its anchor point when it's dismissed; the default value is false

public void setAnimateRecenter (boolean animateRecenter)

Sets the value of the animateRecenter parameter.

Parameters
animateRecenter true to specify animation of the recentering of the MapView when the callout is shown; the default value is false

public void setRecenterMap (boolean recenterMap)

Sets the value of the recenterMap parameter.

Parameters
recenterMap true to recenter the MapView on the callout location when the callout is shown; the default value is false