-
public final class GoogleMapKt
-
-
Method Summary
Modifier and Type Method Description final static Flow<CameraEvent>cameraEvents(GoogleMap $self)Returns a Flow of CameraEvent items so that camera movements can be observed. final static UnitawaitAnimateCamera(GoogleMap $self, CameraUpdate cameraUpdate, Integer durationMs)A suspending function that awaits the completion of the cameraUpdate animation. final static UnitawaitMapLoad(GoogleMap $self)A suspending function that awaits for the map to be loaded. final static Flow<Unit>cameraIdleEvents(GoogleMap $self)Returns a flow that emits when the camera is idle. final static Flow<Unit>cameraMoveCanceledEvents(GoogleMap $self)Returns a flow that emits when a camera move is canceled. final static Flow<Unit>cameraMoveEvents(GoogleMap $self)Returns a flow that emits when the camera moves. final static BitmapawaitSnapshot(GoogleMap $self, Bitmap bitmap)A suspending function that returns a bitmap snapshot of the current view of the map. final static Flow<Integer>cameraMoveStartedEvents(GoogleMap $self)Returns a flow that emits when a camera move started. final static Flow<Circle>circleClickEvents(GoogleMap $self)Returns a flow that emits when a circle is clicked. final static Flow<GroundOverlay>groundOverlayClicks(GoogleMap $self)Returns a flow that emits when a ground overlay is clicked. final static Flow<IndoorChangeEvent>indoorStateChangeEvents(GoogleMap $self)Returns a flow that emits when the indoor state changes. final static Flow<Marker>infoWindowClickEvents(GoogleMap $self)Returns a flow that emits when a marker's info window is clicked. final static Flow<Marker>infoWindowCloseEvents(GoogleMap $self)Returns a flow that emits when a marker's info window is closed. final static Flow<Marker>infoWindowLongClickEvents(GoogleMap $self)Returns a flow that emits when a marker's info window is long pressed. final static Flow<LatLng>mapClickEvents(GoogleMap $self)Returns a flow that emits when the map is clicked. final static Flow<LatLng>mapLongClickEvents(GoogleMap $self)Returns a flow that emits when the map is long clicked. final static Flow<Marker>markerClickEvents(GoogleMap $self)Returns a flow that emits when a marker on the map is clicked. final static Flow<OnMarkerDragEvent>markerDragEvents(GoogleMap $self)Returns a flow that emits when a marker is dragged. final static Flow<Unit>myLocationButtonClickEvents(GoogleMap $self)Returns a flow that emits when the my location button is clicked. final static Flow<Location>myLocationClickEvents(GoogleMap $self)Returns a flow that emits when the my location blue dot is clicked. final static Flow<PointOfInterest>poiClickEvents(GoogleMap $self)Returns a flow that emits when a PointOfInterest is clicked. final static Flow<Polygon>polygonClickEvents(GoogleMap $self)Returns a flow that emits when a Polygon is clicked. final static Flow<Polyline>polylineClickEvents(GoogleMap $self)Returns a flow that emits when a Polyline is clicked. final static GoogleMapOptionsbuildGoogleMapOptions(Function1<GoogleMapOptions, Unit> optionsActions)Builds a new GoogleMapOptions using the provided optionsActions. final static CircleaddCircle(GoogleMap $self, Function1<CircleOptions, Unit> optionsActions)Adds a Circle to this GoogleMap using the function literal with receiver optionsActions. final static GroundOverlayaddGroundOverlay(GoogleMap $self, Function1<GroundOverlayOptions, Unit> optionsActions)Adds a GroundOverlay to this GoogleMap using the function literal with receiver optionsActions. final static MarkeraddMarker(GoogleMap $self, Function1<MarkerOptions, Unit> optionsActions)Adds a Marker to this GoogleMap using the function literal with receiver optionsActions. final static PolygonaddPolygon(GoogleMap $self, Function1<PolygonOptions, Unit> optionsActions)Adds a Polygon to this GoogleMap using the function literal with receiver optionsActions. final static PolylineaddPolyline(GoogleMap $self, Function1<PolylineOptions, Unit> optionsActions)Adds a Polyline to this GoogleMap using the function literal with receiver optionsActions. final static TileOverlayaddTileOverlay(GoogleMap $self, Function1<TileOverlayOptions, Unit> optionsActions)Adds a TileOverlay to this GoogleMap using the function literal with receiver optionsActions. -
-
Method Detail
-
cameraEvents
@Deprecated(message = Use cameraIdleEvents(), cameraMoveCanceledEvents(), cameraMoveEvents() or cameraMoveStartedEvents) final static Flow<CameraEvent> cameraEvents(GoogleMap $self)
Returns a Flow of CameraEvent items so that camera movements can be observed. Using this to observe camera events will set listeners and thus override existing listeners to GoogleMap.setOnCameraIdleListener, GoogleMap.setOnCameraMoveCanceledListener, GoogleMap.setOnCameraMoveListener and GoogleMap.setOnCameraMoveStartedListener.
-
awaitAnimateCamera
final static Unit awaitAnimateCamera(GoogleMap $self, CameraUpdate cameraUpdate, Integer durationMs)
A suspending function that awaits the completion of the cameraUpdate animation.
- Parameters:
cameraUpdate- the CameraUpdate to apply on the mapdurationMs- the duration in milliseconds of the animation.
-
awaitMapLoad
final static Unit awaitMapLoad(GoogleMap $self)
A suspending function that awaits for the map to be loaded. Uses GoogleMap.setOnMapLoadedCallback.
-
cameraIdleEvents
final static Flow<Unit> cameraIdleEvents(GoogleMap $self)
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.
-
cameraMoveCanceledEvents
final static Flow<Unit> cameraMoveCanceledEvents(GoogleMap $self)
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.
-
cameraMoveEvents
final static Flow<Unit> cameraMoveEvents(GoogleMap $self)
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.
-
awaitSnapshot
final static Bitmap awaitSnapshot(GoogleMap $self, Bitmap bitmap)
A suspending function that returns a bitmap snapshot of the current view of the map. Uses GoogleMap.snapshot.
- Parameters:
bitmap- an optional preallocated bitmap
-
cameraMoveStartedEvents
final static Flow<Integer> cameraMoveStartedEvents(GoogleMap $self)
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.
-
circleClickEvents
final static Flow<Circle> circleClickEvents(GoogleMap $self)
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.
-
groundOverlayClicks
final static Flow<GroundOverlay> groundOverlayClicks(GoogleMap $self)
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.
-
indoorStateChangeEvents
final static Flow<IndoorChangeEvent> indoorStateChangeEvents(GoogleMap $self)
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
-
infoWindowClickEvents
final static Flow<Marker> infoWindowClickEvents(GoogleMap $self)
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
-
infoWindowCloseEvents
final static Flow<Marker> infoWindowCloseEvents(GoogleMap $self)
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
-
infoWindowLongClickEvents
final static Flow<Marker> infoWindowLongClickEvents(GoogleMap $self)
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
-
mapClickEvents
final static Flow<LatLng> mapClickEvents(GoogleMap $self)
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
-
mapLongClickEvents
final static Flow<LatLng> mapLongClickEvents(GoogleMap $self)
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
-
markerClickEvents
final static Flow<Marker> markerClickEvents(GoogleMap $self)
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
-
markerDragEvents
final static Flow<OnMarkerDragEvent> markerDragEvents(GoogleMap $self)
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
-
myLocationButtonClickEvents
final static Flow<Unit> myLocationButtonClickEvents(GoogleMap $self)
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
-
myLocationClickEvents
final static Flow<Location> myLocationClickEvents(GoogleMap $self)
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
-
poiClickEvents
final static Flow<PointOfInterest> poiClickEvents(GoogleMap $self)
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
-
polygonClickEvents
final static Flow<Polygon> polygonClickEvents(GoogleMap $self)
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
-
polylineClickEvents
final static Flow<Polyline> polylineClickEvents(GoogleMap $self)
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
-
buildGoogleMapOptions
final static GoogleMapOptions buildGoogleMapOptions(Function1<GoogleMapOptions, Unit> optionsActions)
Builds a new GoogleMapOptions using the provided optionsActions.
-
addCircle
final static Circle addCircle(GoogleMap $self, Function1<CircleOptions, Unit> optionsActions)
Adds a Circle to this GoogleMap using the function literal with receiver optionsActions.
-
addGroundOverlay
final static GroundOverlay addGroundOverlay(GoogleMap $self, Function1<GroundOverlayOptions, Unit> optionsActions)
Adds a GroundOverlay to this GoogleMap using the function literal with receiver optionsActions.
-
addMarker
final static Marker addMarker(GoogleMap $self, Function1<MarkerOptions, Unit> optionsActions)
Adds a Marker to this GoogleMap using the function literal with receiver optionsActions.
-
addPolygon
final static Polygon addPolygon(GoogleMap $self, Function1<PolygonOptions, Unit> optionsActions)
Adds a Polygon to this GoogleMap using the function literal with receiver optionsActions.
-
addPolyline
final static Polyline addPolyline(GoogleMap $self, Function1<PolylineOptions, Unit> optionsActions)
Adds a Polyline to this GoogleMap using the function literal with receiver optionsActions.
-
addTileOverlay
final static TileOverlay addTileOverlay(GoogleMap $self, Function1<TileOverlayOptions, Unit> optionsActions)
Adds a TileOverlay to this GoogleMap using the function literal with receiver optionsActions.
-
-
-
-