StreetViewPanorama.OnStreetViewPanoramaChangeListener
Stay organized with collections
Save and categorize content based on your preferences.
A listener for when the Street View panorama loads a new panorama
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 |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eStreetViewPanorama.OnStreetViewPanoramaChangeListener\u003c/code\u003e is an interface used to listen for panorama load changes in Street View.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eonStreetViewPanoramaChange\u003c/code\u003e method is triggered when the Street View panorama transitions between locations, either due to user navigation or programmatic changes, and provides the new location (or null if invalid).\u003c/p\u003e\n"]]],[],null,["# StreetViewPanorama.OnStreetViewPanoramaChangeListener\n\npublic static interface **StreetViewPanorama.OnStreetViewPanoramaChangeListener** \nA listener for when the Street View panorama loads a new panorama \n\n### Public Method Summary\n\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [onStreetViewPanoramaChange](/android/reference/com/google/android/gms/maps/StreetViewPanorama.OnStreetViewPanoramaChangeListener#onStreetViewPanoramaChange(com.google.android.gms.maps.model.StreetViewPanoramaLocation))([StreetViewPanoramaLocation](/android/reference/com/google/android/gms/maps/model/StreetViewPanoramaLocation) location) The StreetViewPanorama performs an animated transition from one location to another when the user performs a manual navigation action. |\n\nPublic Methods\n--------------\n\n#### public abstract void **onStreetViewPanoramaChange** ([StreetViewPanoramaLocation](/android/reference/com/google/android/gms/maps/model/StreetViewPanoramaLocation) location)\n\nThe StreetViewPanorama performs an animated transition from one location to another\nwhen the user performs a manual navigation action. This callback is called when the\ntransition animation has occurred and the rendering of the first panorama has occurred.\nThis callback also occurs when the developer sets a position and the rendering of the\nfirst panorama has occurred. It is possible that not all the panoramas have loaded when\nthis callback is activated. Implementations of this method are always invoked on the\nmain thread. \n\n##### Parameters\n\n| location | Location the StreetViewPanorama is changed to. `null` if it is an invalid panorama |\n|----------|------------------------------------------------------------------------------------|"]]