MapController.Builder
public final class MapController.Builder
A builder of MapController.
Summary
Public constructors |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull MapController |
build()Constructs the |
@NonNull MapController.Builder |
setMapActionStrip(@NonNull ActionStrip actionStrip)Sets an |
@NonNull MapController.Builder |
setPanModeListener(@NonNull PanModeListener panModeListener)Sets a |
Public constructors
Public methods
build
public @NonNull MapController build()
Constructs the MapController defined by this builder.
setMapActionStrip
public @NonNull MapController.Builder setMapActionStrip(@NonNull ActionStrip actionStrip)
Sets an ActionStrip with a list of map-control related actions for the active template, such as pan or zoom.
The host will draw the buttons in an area that is associated with map controls.
If the app does not include the PAN button in this ActionStrip, the app will not receive the user input for panning gestures from SurfaceCallback methods, and the host will exit any previously activated pan mode.
Actions in its map ActionStrip. Only Actions with icons set via setIcon are allowed.
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
java.lang.NullPointerException |
if |
setPanModeListener
public @NonNull MapController.Builder setPanModeListener(@NonNull PanModeListener panModeListener)
Sets a PanModeListener that notifies when the user enters and exits the pan mode.
If the app does not include the PAN button in the map ActionStrip, the app will not receive the user input for panning gestures from SurfaceCallback methods, and the host will exit any previously activated pan mode.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |