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 programmatically control and manipulate the panorama.

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

  • The primary method, onStreetViewPanoramaReady, is triggered when the panorama is fully loaded and ready, providing the StreetViewPanorama instance for use.

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 is 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.