AI-generated Key Takeaways
-
This page provides an overview of the interfaces and classes included in the Google Maps SDK for Android.
-
Various interfaces are available for handling different events such as map taps, camera movements, and interactions with map elements like markers and circles.
-
Key classes include
GoogleMapfor map interaction,CameraUpdateFactoryfor controlling the map's camera, andMapFragmentandMapViewfor displaying the map. -
The
StreetViewPanoramaclass and related components are provided for integrating Street View functionality. -
An enum is available for specifying the desired renderer for the Maps SDK.
Interfaces
| GoogleMap.CancelableCallback | A callback interface for reporting when a task is complete or canceled. |
| GoogleMap.InfoWindowAdapter | Provides views for customized rendering of info windows. |
| GoogleMap.OnCameraChangeListener | This interface is deprecated. Replaced by GoogleMap.OnCameraMoveStartedListener
, GoogleMap.OnCameraMoveListener
and GoogleMap.OnCameraIdleListener
.
The order in which the deprecated onCameraChange
method will be called in
relation to the methods in the new camera change listeners is undefined.
|
| GoogleMap.OnCameraIdleListener | Callback interface for when camera movement has ended. |
| GoogleMap.OnCameraMoveCanceledListener | Callback interface for when the camera's motion has been stopped or when the camera starts moving for a new reason. |
| GoogleMap.OnCameraMoveListener | Callback interface for when the camera changes position. |
| GoogleMap.OnCameraMoveStartedListener | Callback interface for when the camera motion starts. |
| GoogleMap.OnCircleClickListener | Callback interface for when a circle is clicked. |
| GoogleMap.OnGroundOverlayClickListener | Callback interface for when a ground overlay is clicked. |
| GoogleMap.OnIndoorStateChangeListener | A listener for when the indoor state changes. |
| GoogleMap.OnInfoWindowClickListener | Callback interface for click/tap events on a marker's info window. |
| GoogleMap.OnInfoWindowCloseListener | Callback interface for close events on a marker's info window. |
| GoogleMap.OnInfoWindowLongClickListener | Callback interface for when the user long presses on a marker's info window. |
| GoogleMap.OnMapCapabilitiesChangedListener | Listener interface for when the map capabilities are changed. |
| GoogleMap.OnMapClickListener | Callback interface for when the user taps on the map. |
| GoogleMap.OnMapLoadedCallback | Callback interface for when the map has finished rendering. |
| GoogleMap.OnMapLongClickListener | Callback interface for when the user long presses on the map. |
| GoogleMap.OnMarkerClickListener | Defines signatures for methods that are called when a marker is clicked or tapped. |
| GoogleMap.OnMarkerDragListener | Callback interface for drag events on markers. |
| GoogleMap.OnMyLocationButtonClickListener | Callback interface for when the My Location button is clicked. |
| GoogleMap.OnMyLocationChangeListener | This interface is deprecated. Use com.google.android.gms.location.FusedLocationProviderApi instead. FusedLocationProviderApi provides improved location finding and power usage and is used by the "My Location" blue dot. See the Select Current Place tutorial , which uses the FusedLocationProviderApi, or the Location Developer Guide . |
| GoogleMap.OnMyLocationClickListener | Callback interface for when the My Location dot (which signifies the user's location) is clicked. |
| GoogleMap.OnPoiClickListener | A listener for POI taps. |
| GoogleMap.OnPolygonClickListener | Callback interface for when a polygon is clicked. |
| GoogleMap.OnPolylineClickListener | Callback interface for when a polyline is clicked. |
| GoogleMap.SnapshotReadyCallback | Callback interface to notify when the snapshot has been taken. |
| LocationSource | Defines an interface for providing location data,
typically to a GoogleMap
object. |
| LocationSource.OnLocationChangedListener | Handles a location update. |
| OnMapReadyCallback | Callback interface for when the map is ready to be used. |
| OnMapsSdkInitializedCallback | Callback interface used by the Maps SDK to inform
you which maps MapsInitializer.Renderer
type has been loaded for your application. |
| OnStreetViewPanoramaReadyCallback | Callback interface for when the Street View panorama is ready to be used. |
| StreetViewPanorama.OnStreetViewPanoramaCameraChangeListener | A listener for when the StreetViewPanoramaCamera changes |
| StreetViewPanorama.OnStreetViewPanoramaChangeListener | A listener for when the Street View panorama loads a new panorama |
| StreetViewPanorama.OnStreetViewPanoramaClickListener | Callback interface for when the user taps on the panorama. |
| StreetViewPanorama.OnStreetViewPanoramaLongClickListener | Callback interface for when the user long presses on the panorama. |
Classes
| CameraUpdate | Defines a camera move. |
| CameraUpdateFactory | A class containing methods for creating CameraUpdate
objects that change a map's camera. |
| GoogleMap | This is the main class of the Google Maps SDK for Android and is the entry point for all methods related to the map. |
| GoogleMapOptions | Defines configuration GoogleMapOptions for a GoogleMap
. |
| MapFragment | A Map component in an app. |
| MapsApiSettings | Provides entry points for adding configuration to the Maps API. |
| MapsInitializer | Use this class to initialize the Google Maps SDK for Android if features need to be used before obtaining a map. |
| MapView | A View which displays a map (with data obtained from the Google Maps service). |
| Projection | A projection is used to translate between on
screen location and geographic coordinates on the surface of the Earth ( LatLng
). |
| StreetViewPanorama | This is the main class of the Street View feature in the Google Maps SDK for Android and is the entry point for all methods related to Street View panoramas. |
| StreetViewPanoramaFragment | A StreetViewPanorama component in an app. |
| StreetViewPanoramaOptions | Defines configuration PanoramaOptions for a StreetViewPanorama
. |
| StreetViewPanoramaView | A View which displays a Street View panorama (with data obtained from the Google Maps service). |
| SupportMapFragment | A Map component in an app. |
| SupportStreetViewPanoramaFragment | A StreetViewPanorama component in an app. |
| UiSettings | Settings for the user interface of a GoogleMap. |

