public final class

MapController.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.navigation.model.MapController.Builder

Overview

A builder of MapController.

Summary

Constructors
publicBuilder()

Methods
public MapControllerbuild()

Constructs the MapController defined by this builder.

public MapController.BuildersetMapActionStrip(ActionStrip actionStrip)

Sets an ActionStrip with a list of map-control related actions for the active template, such as pan or zoom.

public MapController.BuildersetPanModeListener(PanModeListener panModeListener)

Sets a PanModeListener that notifies when the user enters and exits the pan mode.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public MapController.Builder setPanModeListener(PanModeListener panModeListener)

Sets a PanModeListener that notifies when the user enters and exits the pan mode.

If the app does not include the Action.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.

public MapController.Builder setMapActionStrip(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 Action.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.

Requirements

This component allows up to 4 Actions in its map ActionStrip. Only Actions with icons set via are allowed.

public MapController build()

Constructs the MapController defined by this builder.