StreetViewPanorama.OnStreetViewPanoramaLongClickListener
Stay organized with collections
Save and categorize content based on your preferences.
Callback interface for when the user long presses on the panorama.
Listeners will be invoked on the main thread
Public Methods
public abstract void onStreetViewPanoramaLongClick (StreetViewPanoramaOrientation
orientation)
Called when the user makes a long-press gesture on the panorama, but only if none of
the overlays of the panorama handled the gesture. Implementations of this method are
always invoked on the main thread.
Parameters
orientation |
The tilt and bearing values corresponding to the point on the screen where the
user long-pressed. These values have an absolute value within a specific panorama,
and are independent of the current orientation of the camera. |
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."],[[["`StreetViewPanorama.OnStreetViewPanoramaLongClickListener` is an interface to handle user long presses on a panorama view."],["The `onStreetViewPanoramaLongClick` method is triggered when a user long presses the panorama, providing the orientation of the point pressed."],["This callback is only invoked if no overlays on the panorama handled the long press gesture."],["Listener methods are always executed on the main thread, ensuring UI updates are handled correctly."]]],["The `StreetViewPanorama.OnStreetViewPanoramaLongClickListener` interface provides a callback for long-press gestures on a Street View panorama. The `onStreetViewPanoramaLongClick` method is triggered when a user long-presses the panorama, excluding cases where overlays handle the gesture. This method, always invoked on the main thread, passes `StreetViewPanoramaOrientation` which contains the tilt and bearing at the long-press location. The long-pressed orientation parameters are independent of camera position.\n"]]