OnStreetViewPanoramaReadyCallback
Stay organized with collections
Save and categorize content based on your preferences.
Public Methods
public abstract void onStreetViewPanoramaReady (StreetViewPanorama
panorama)
Called when the Street View panorama is ready to be used.
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.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eOnStreetViewPanoramaReadyCallback\u003c/code\u003e is an interface used to signal when a Street View panorama is ready for interaction within your Android application.\u003c/p\u003e\n"],["\u003cp\u003eThis callback provides a \u003ccode\u003eStreetViewPanorama\u003c/code\u003e object, allowing developers to programmatically control and manipulate the panorama.\u003c/p\u003e\n"],["\u003cp\u003eIf 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.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003eonStreetViewPanoramaReady\u003c/code\u003e, is triggered when the panorama is fully loaded and ready, providing the \u003ccode\u003eStreetViewPanorama\u003c/code\u003e instance for use.\u003c/p\u003e\n"]]],["The `OnStreetViewPanoramaReadyCallback` interface triggers the `onStreetViewPanoramaReady` method when a Street View panorama is ready. This interface is set on a `StreetViewPanoramaFragment` or `StreetViewPanoramaView`. The `onStreetViewPanoramaReady` method provides a non-null `StreetViewPanorama` instance, allowing interaction with the panorama. If Google Play services is not installed, the method will be triggered after installation and app re-entry. It takes the `StreetViewPanorama` associated with the callback.\n"],null,["# OnStreetViewPanoramaReadyCallback\n\npublic interface **OnStreetViewPanoramaReadyCallback** \nCallback interface for when the Street View panorama is ready to be used.\n\nOnce an instance of this interface is set on a [StreetViewPanoramaFragment](/android/reference/com/google/android/gms/maps/StreetViewPanoramaFragment)\nor [StreetViewPanoramaView](/android/reference/com/google/android/gms/maps/StreetViewPanoramaView)\nobject, the [onStreetViewPanoramaReady(StreetViewPanorama)](/android/reference/com/google/android/gms/maps/OnStreetViewPanoramaReadyCallback#onStreetViewPanoramaReady(com.google.android.gms.maps.StreetViewPanorama)) method is triggered when the\npanorama is ready to be used and provides a non-null instance of [StreetViewPanorama](/android/reference/com/google/android/gms/maps/StreetViewPanorama).\n\nIf Google Play services is not installed on the device, the user is prompted to install\nit, and the [onStreetViewPanoramaReady(StreetViewPanorama)](/android/reference/com/google/android/gms/maps/OnStreetViewPanoramaReadyCallback#onStreetViewPanoramaReady(com.google.android.gms.maps.StreetViewPanorama)) method will only be triggered when\nthe user has installed it and returned to the app. \n\n### Public Method Summary\n\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [onStreetViewPanoramaReady](/android/reference/com/google/android/gms/maps/OnStreetViewPanoramaReadyCallback#onStreetViewPanoramaReady(com.google.android.gms.maps.StreetViewPanorama))([StreetViewPanorama](/android/reference/com/google/android/gms/maps/StreetViewPanorama) panorama) Called when the Street View panorama is ready to be used. |\n\nPublic Methods\n--------------\n\n#### public abstract void **onStreetViewPanoramaReady** ([StreetViewPanorama](/android/reference/com/google/android/gms/maps/StreetViewPanorama) panorama)\n\nCalled when the Street View panorama is ready to be used. \n\n##### Parameters\n\n| panorama | A non-null instance of a StreetViewPanorama associated with the [StreetViewPanoramaFragment](/android/reference/com/google/android/gms/maps/StreetViewPanoramaFragment) or [StreetViewPanoramaView](/android/reference/com/google/android/gms/maps/StreetViewPanoramaView) that defines the callback. |\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]