Package 

Class StreetViewKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit StreetView(Modifier modifier, StreetViewCameraPositionState cameraPositionState, Function0<StreetViewPanoramaOptions> streetViewPanoramaOptionsFactory, Boolean isPanningGesturesEnabled, Boolean isStreetNamesEnabled, Boolean isUserNavigationEnabled, Boolean isZoomGesturesEnabled, Function1<StreetViewPanoramaOrientation, Unit> onClick, Function1<StreetViewPanoramaOrientation, Unit> onLongClick) A composable for displaying a Street View for a given location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • StreetView

        @Composable() final static Unit StreetView(Modifier modifier, StreetViewCameraPositionState cameraPositionState, Function0<StreetViewPanoramaOptions> streetViewPanoramaOptionsFactory, Boolean isPanningGesturesEnabled, Boolean isStreetNamesEnabled, Boolean isUserNavigationEnabled, Boolean isZoomGesturesEnabled, Function1<StreetViewPanoramaOrientation, Unit> onClick, Function1<StreetViewPanoramaOrientation, Unit> onLongClick)

        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