StreetViewPanorama.OnStreetViewPanoramaChangeListener

  • StreetViewPanorama.OnStreetViewPanoramaChangeListener is an interface used to listen for panorama load events in Street View.

  • The onStreetViewPanoramaChange method is triggered when the Street View panorama transitions to a new location, either through user interaction or programmatically setting a position.

  • This method provides the new location as a StreetViewPanoramaLocation object, which can be null if the panorama is invalid.

  • The onStreetViewPanoramaChange callback is executed on the main thread after the transition animation and initial rendering of the new panorama are complete.

public static interface StreetViewPanorama.OnStreetViewPanoramaChangeListener

A listener for when the Street View panorama loads a new panorama

Public Method Summary

abstract void
onStreetViewPanoramaChange(StreetViewPanoramaLocation location)
The StreetViewPanorama performs an animated transition from one location to another when the user performs a manual navigation action.

Public Methods

public abstract void onStreetViewPanoramaChange (StreetViewPanoramaLocation location)

The StreetViewPanorama performs an animated transition from one location to another when the user performs a manual navigation action. This callback is called when the transition animation has occurred and the rendering of the first panorama has occurred. This callback also occurs when the developer sets a position and the rendering of the first panorama has occurred. It is possible that not all the panoramas have loaded when this callback is activated. Implementations of this method are always invoked on the main thread.

Parameters
location Location the StreetViewPanorama is changed to. null if it is an invalid panorama