StreetView

fun StreetView(modifier: Modifier = Modifier, cameraPositionState: StreetViewCameraPositionState = rememberStreetViewCameraPositionState(), streetViewPanoramaOptionsFactory: () -> StreetViewPanoramaOptions = { StreetViewPanoramaOptions() }, isPanningGesturesEnabled: Boolean = true, isStreetNamesEnabled: Boolean = true, isUserNavigationEnabled: Boolean = true, isZoomGesturesEnabled: Boolean = true, onClick: (StreetViewPanoramaOrientation) -> Unit = {}, onLongClick: (StreetViewPanoramaOrientation) -> Unit = {})

A composable for displaying a Street View for a given location. A location might not be available for a given set of coordinates. We recommend you to check our sample on StreetViewActivity using our utility function in StreetViewUtils to manage non-existing locations.

Parameters

modifier

Modifier to be applied to the StreetView

cameraPositionState

the StreetViewCameraPositionState to be used to control or observe the Street View's camera

streetViewPanoramaOptionsFactory

a factory lambda for providing a StreetViewPanoramaOptions object which is used when the underlying StreetViewPanoramaView is constructed

isPanningGesturesEnabled

whether panning gestures are enabled or not

isStreetNamesEnabled

whether street names are enabled or not

isUserNavigationEnabled

whether user navigation is enabled or not

isZoomGesturesEnabled

whether zoom gestures are enabled or not

onClick

lambda to receive events when the Street View is clicked

onLongClick

lambda to receive events when the Street View is long clicked