OnStreetViewPanoramaReadyCallback

  • OnStreetViewPanoramaReadyCallback is an interface used to signal when a Street View panorama is ready for interaction within your Android application.

  • This callback provides a StreetViewPanorama object, allowing developers to control and manipulate the Street View experience.

  • The onStreetViewPanoramaReady method is triggered when the panorama is ready, but it requires Google Play services to be installed on the device.

  • If Google Play services isn't installed, the user is prompted to install it, and the callback is triggered only after installation and returning to the app.

public interface OnStreetViewPanoramaReadyCallback

Callback interface for when the Street View panorama is ready to be used.

Once an instance of this interface is set on a StreetViewPanoramaFragment or StreetViewPanoramaView object, the onStreetViewPanoramaReady(StreetViewPanorama) method is triggered when the panorama is ready to be used and provides a non-null instance of StreetViewPanorama.

If Google Play services is not installed on the device, the user will be prompted to install it, and the onStreetViewPanoramaReady(StreetViewPanorama) method will only be triggered when the user has installed it and returned to the app.

Public Method Summary

abstract void
onStreetViewPanoramaReady(StreetViewPanorama panorama)
Called when the Street View panorama is ready to be used.

Public Methods

public abstract void onStreetViewPanoramaReady (StreetViewPanorama panorama)

Called when the Street View panorama is ready to be used.

Parameters
panorama A non-null instance of a StreetViewPanorama associated with the StreetViewPanoramaFragment or StreetViewPanoramaView that defines the callback.