Package-level declarations

Types

Link copied to clipboard
sealed class CameraEvent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class CameraMoveStartedEvent(val reason: Int) : CameraEvent
Link copied to clipboard

Change event when an indoor building is focused. See GoogleMap.OnIndoorStateChangeListener.onIndoorBuildingFocused

Link copied to clipboard
sealed class IndoorChangeEvent

Change event when the indoor state changes. See GoogleMap.OnIndoorStateChangeListener

Link copied to clipboard
data class IndoorLevelActivatedEvent(val building: IndoorBuilding) : IndoorChangeEvent

Change event when an indoor level is activated. See GoogleMap.OnIndoorStateChangeListener.onIndoorLevelActivated

Link copied to clipboard
annotation class MapsExperimentalFeature

Annotation for APIs that are experimental and require explicit opt-in annotation before use.

Link copied to clipboard
data class MarkerDragEndEvent(val marker: Marker) : OnMarkerDragEvent

Event emitted when a marker has finished being dragged.

Link copied to clipboard
data class MarkerDragEvent(val marker: Marker) : OnMarkerDragEvent

Event emitted repeatedly while a marker is being dragged.

Link copied to clipboard
data class MarkerDragStartEvent(val marker: Marker) : OnMarkerDragEvent

Event emitted when a marker starts being dragged.

Link copied to clipboard
annotation class MoveStartedReason
Link copied to clipboard
sealed class OnMarkerDragEvent

Change event when a marker is dragged. See GoogleMap.setOnMarkerDragListener

Functions

Link copied to clipboard
inline fun GoogleMap.addCircle(optionsActions: CircleOptions.() -> Unit): Circle

Adds a Circle to this GoogleMap using the function literal with receiver optionsActions.

Link copied to clipboard
inline fun GoogleMap.addGroundOverlay(optionsActions: GroundOverlayOptions.() -> Unit): GroundOverlay?

Adds a GroundOverlay to this GoogleMap using the function literal with receiver optionsActions.

Link copied to clipboard
inline fun GoogleMap.addMarker(optionsActions: MarkerOptions.() -> Unit): Marker?

Adds a Marker to this GoogleMap using the function literal with receiver optionsActions.

Link copied to clipboard
inline fun GoogleMap.addPolygon(optionsActions: PolygonOptions.() -> Unit): Polygon

Adds a Polygon to this GoogleMap using the function literal with receiver optionsActions.

Link copied to clipboard
inline fun GoogleMap.addPolyline(optionsActions: PolylineOptions.() -> Unit): Polyline

Adds a Polyline to this GoogleMap using the function literal with receiver optionsActions.

Link copied to clipboard
inline fun GoogleMap.addTileOverlay(optionsActions: TileOverlayOptions.() -> Unit): TileOverlay?

Adds a TileOverlay to this GoogleMap using the function literal with receiver optionsActions.

Link copied to clipboard
inline suspend fun GoogleMap.awaitAnimateCamera(cameraUpdate: CameraUpdate, durationMs: Int = 3000)

A suspending function that awaits the completion of the cameraUpdate animation.

Link copied to clipboard
inline suspend fun MapFragment.awaitMap(): GoogleMap

A suspending function that provides an instance of a GoogleMap from this MapFragment. This is an alternative to MapFragment.getMapAsync by using coroutines to obtain a GoogleMap.

inline suspend fun MapView.awaitMap(): GoogleMap

A suspending function that provides an instance of GoogleMap from this MapView. This is an alternative to MapView.getMapAsync by using coroutines to obtain the GoogleMap.

inline suspend fun SupportMapFragment.awaitMap(): GoogleMap

A suspending function that provides an instance of a GoogleMap from this SupportMapFragment. This is an alternative to using SupportMapFragment.getMapAsync by using coroutines to obtain a GoogleMap.

Link copied to clipboard
inline suspend fun GoogleMap.awaitMapLoad()

A suspending function that awaits for the map to be loaded. Uses GoogleMap.setOnMapLoadedCallback.

Link copied to clipboard
inline suspend fun GoogleMap.awaitSnapshot(bitmap: Bitmap? = null): Bitmap?

A suspending function that returns a bitmap snapshot of the current view of the map. Uses GoogleMap.snapshot.

Link copied to clipboard
inline suspend fun StreetViewPanoramaFragment.awaitStreetViewPanorama(): StreetViewPanorama

A suspending function that provides an instance of a StreetViewPanorama from this StreetViewPanoramaFragment. This is an alternative to using StreetViewPanoramaFragment.getStreetViewPanoramaAsync by using coroutines to obtain a StreetViewPanorama.

inline suspend fun StreetViewPanoramaView.awaitStreetViewPanorama(): StreetViewPanorama

A suspending function that provides an instance of a StreetViewPanorama from this StreetViewPanoramaView. This is an alternative to using StreetViewPanoramaView.getStreetViewPanoramaAsync by using coroutines to obtain a StreetViewPanorama.

inline suspend fun SupportStreetViewPanoramaFragment.awaitStreetViewPanorama(): StreetViewPanorama

A suspending function that provides an instance of a StreetViewPanorama from this SupportStreetViewPanoramaFragment. This is an alternative to using SupportStreetViewPanoramaFragment.getStreetViewPanoramaAsync by using coroutines to obtain a StreetViewPanorama.

Link copied to clipboard
inline fun buildGoogleMapOptions(optionsActions: GoogleMapOptions.() -> Unit): GoogleMapOptions

Builds a new GoogleMapOptions using the provided optionsActions.

Link copied to clipboard
fun StreetViewPanorama.cameraChangeEvents(): Flow<StreetViewPanoramaCamera>

Returns a flow that emits when the street view panorama camera changes. Using this to observe panorama camera change events will override an existing listener (if any) to StreetViewPanorama.setOnStreetViewPanoramaCameraChangeListener.

Link copied to clipboard
fun GoogleMap.cameraIdleEvents(): Flow<Unit>

Returns a flow that emits when the camera is idle. Using this to observe camera idle events will override an existing listener (if any) to GoogleMap.setOnCameraIdleListener.

Link copied to clipboard
fun GoogleMap.cameraMoveCanceledEvents(): Flow<Unit>

Returns a flow that emits when a camera move is canceled. Using this to observe camera move cancel events will override an existing listener (if any) to GoogleMap.setOnCameraMoveCanceledListener.

Link copied to clipboard
fun GoogleMap.cameraMoveEvents(): Flow<Unit>

Returns a flow that emits when the camera moves. Using this to observe camera move events will override an existing listener (if any) to GoogleMap.setOnCameraMoveListener.

Link copied to clipboard
fun GoogleMap.cameraMoveStartedEvents(): Flow<Int>

Returns a flow that emits when a camera move started. Using this to observe camera move start events will override an existing listener (if any) to GoogleMap.setOnCameraMoveStartedListener.

Link copied to clipboard
fun StreetViewPanorama.changeEvents(): Flow<StreetViewPanoramaLocation>

Returns a flow that emits when the street view panorama loads a new panorama. Using this to observe panorama load change events will override an existing listener (if any) to StreetViewPanorama.setOnStreetViewPanoramaChangeListener.

Link copied to clipboard
fun GoogleMap.circleClickEvents(): Flow<Circle>

Returns a flow that emits when a circle is clicked. Using this to observe circle clicks events will override an existing listener (if any) to GoogleMap.setOnCircleClickListener.

Link copied to clipboard
fun StreetViewPanorama.clickEvents(): Flow<StreetViewPanoramaOrientation>

Returns a flow that emits when the street view panorama is clicked. Using this to observe panorama click events will override an existing listener (if any) to StreetViewPanorama.setOnStreetViewPanoramaClickListener.

Link copied to clipboard
fun GoogleMap.groundOverlayClicks(): Flow<GroundOverlay>

Returns a flow that emits when a ground overlay is clicked. Using this to observe ground overlay clicks events will override an existing listener (if any) to GoogleMap.setOnGroundOverlayClickListener.

Link copied to clipboard

Returns a flow that emits when the indoor state changes. Using this to observe indoor state change events will override an existing listener (if any) to GoogleMap.setOnIndoorStateChangeListener

Link copied to clipboard
fun GoogleMap.infoWindowClickEvents(): Flow<Marker>

Returns a flow that emits when a marker's info window is clicked. Using this to observe info info window clicks will override an existing listener (if any) to GoogleMap.setOnInfoWindowClickListener

Link copied to clipboard
fun GoogleMap.infoWindowCloseEvents(): Flow<Marker>

Returns a flow that emits when a marker's info window is closed. Using this to observe info window closes will override an existing listener (if any) to GoogleMap.setOnInfoWindowCloseListener

Link copied to clipboard
fun GoogleMap.infoWindowLongClickEvents(): Flow<Marker>

Returns a flow that emits when a marker's info window is long pressed. Using this to observe info window long presses will override an existing listener (if any) to GoogleMap.setOnInfoWindowLongClickListener

Link copied to clipboard
fun StreetViewPanorama.longClickEvents(): Flow<StreetViewPanoramaOrientation>

Returns a flow that emits when the street view panorama is long clicked. Using this to observe panorama long click events will override an existing listener (if any) to StreetViewPanorama.setOnStreetViewPanoramaLongClickListener.

Link copied to clipboard
fun GoogleMap.mapClickEvents(): Flow<LatLng>

Returns a flow that emits when the map is clicked. Using this to observe map click events will override an existing listener (if any) to GoogleMap.setOnMapClickListener

Link copied to clipboard
fun GoogleMap.mapLongClickEvents(): Flow<LatLng>

Returns a flow that emits when the map is long clicked. Using this to observe map click events will override an existing listener (if any) to GoogleMap.setOnMapLongClickListener

Link copied to clipboard
fun GoogleMap.markerClickEvents(): Flow<Marker>

Returns a flow that emits when a marker on the map is clicked. Using this to observe marker click events will override an existing listener (if any) to GoogleMap.setOnMarkerClickListener

Link copied to clipboard
fun GoogleMap.markerDragEvents(): Flow<OnMarkerDragEvent>

Returns a flow that emits when a marker is dragged. Using this to observer marker drag events will override existing listeners (if any) to GoogleMap.setOnMarkerDragListener

Link copied to clipboard
fun GoogleMap.myLocationButtonClickEvents(): Flow<Unit>

Returns a flow that emits when the my location button is clicked. Using this to observe my location button click events will override an existing listener (if any) to GoogleMap.setOnMyLocationButtonClickListener

Link copied to clipboard
fun GoogleMap.myLocationClickEvents(): Flow<Location>

Returns a flow that emits when the my location blue dot is clicked. Using this to observe my location blue dot click events will override an existing listener (if any) to GoogleMap.setOnMyLocationClickListener

Link copied to clipboard
fun GoogleMap.poiClickEvents(): Flow<PointOfInterest>

Returns a flow that emits when a PointOfInterest is clicked. Using this to observe PointOfInterest click events will override an existing listener (if any) to GoogleMap.setOnPoiClickListener

Link copied to clipboard
fun GoogleMap.polygonClickEvents(): Flow<Polygon>

Returns a flow that emits when a Polygon is clicked. Using this to observe Polygon click events will override an existing listener (if any) to GoogleMap.setOnPolygonClickListener

Link copied to clipboard
fun GoogleMap.polylineClickEvents(): Flow<Polyline>

Returns a flow that emits when a Polyline is clicked. Using this to observe Polyline click events will override an existing listener (if any) to GoogleMap.setOnPolylineClickListener