A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/StreetViewPanorama below:

StreetViewPanorama | Google Play services

StreetViewPanorama

Stay organized with collections Save and categorize content based on your preferences.

This is the main class of the Street View feature in the Google Maps SDK for Android and is the entry point for all methods related to Street View panoramas. You cannot instantiate a StreetViewPanorama object directly, rather, you must obtain one from the #getStreetViewPanoramaAsync() method on a StreetViewPanoramaFragment or StreetViewPanoramaView that you have added to your application.

Note: Similar to a View object, a StreetViewPanorama can only be read and modified from the main thread. Calling StreetViewPanorama methods from another thread will result in an exception.

Developer Guide

To get started with the Google Maps SDK for Android, read the Google Maps SDK for Android developer guide.

Nested Class Summary Public Method Summary Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

Public Methods public void animateTo (StreetViewPanoramaCamera camera, long duration)

Changes the current camera position, orientation and zoom, to a given position over a specified duration

Parameters camera The camera position to animate to. Must not be null. duration The length of time, in milliseconds, it takes to transition from the current camera position to the given one public StreetViewPanoramaLocation getLocation ()

Returns the current location of the user and information regarding the current panorama's adjacent panoramas

Returns public StreetViewPanoramaCamera getPanoramaCamera ()

Returns the current orientation and zoom

Returns public boolean isPanningGesturesEnabled ()

Returns whether or not the panning gestures are enabled for the user

Returns public boolean isStreetNamesEnabled ()

Returns whether or not the street names appear on the panorama

Returns public boolean isUserNavigationEnabled ()

Returns whether or not the navigation is enabled for the user. This includes double tapping as well as using the navigation links

Returns public boolean isZoomGesturesEnabled ()

Returns whether or not the zoom gestures are enabled for the user

Returns public Point orientationToPoint (StreetViewPanoramaOrientation orientation)

Returns a screen location that corresponds to an orientation (StreetViewPanoramaOrientation). The screen location is in screen pixels (not display pixels) relative to the top left of the Street View panorama (not of the whole screen).

Returns public StreetViewPanoramaOrientation pointToOrientation (Point point)

Returns the orientation that corresponds to a screen location. The screen location is specified in screen pixels (not display pixels) relative to the top left of the Street View panorama (not the top left of the whole screen).

Parameters point A Point on the screen in screen pixels. Returns public final void setOnStreetViewPanoramaChangeListener (StreetViewPanorama.OnStreetViewPanoramaChangeListener listener)

Sets a callback that's invoked when the panorama changes

Parameters listener The callback that's invoked when the panorama changes. To unset the callback, use null. public final void setOnStreetViewPanoramaClickListener (StreetViewPanorama.OnStreetViewPanoramaClickListener listener)

Sets a callback that's invoked when the panorama is tapped.

Parameters listener The callback that's invoked when the panorama is tapped. To unset the callback, use null. public final void setOnStreetViewPanoramaLongClickListener (StreetViewPanorama.OnStreetViewPanoramaLongClickListener listener)

Sets a callback that's invoked when the panorama is long-pressed.

Parameters listener The callback that's invoked when the panorama is long-pressed. To unset the callback, use null. public void setPanningGesturesEnabled (boolean enablePanning)

Sets whether the user is able to use panning gestures

Parameters enablePanning true if users are allowed to use panning gestures public void setPosition (LatLng position, StreetViewSource source)

Sets the StreetViewPanorama to a given location

Parameters position Latitude and longitude of the desired location. Must not be null. source StreetViewSource specifies the source of panoramas to search. If source is null, use the default. public void setPosition (LatLng position)

Sets the StreetViewPanorama to a given location

Parameters position Latitude and longitude of the desired location. Should not be null. public void setPosition (LatLng position, int radius)

Sets the StreetViewPanorama to a given location

Parameters position Latitude and longitude of the desired location. Must not be null. radius Radius, specified in meters, that defines the area in which to search for a panorama, centered on the given latitude and longitude public void setPosition (LatLng position, int radius, StreetViewSource source)

Sets the StreetViewPanorama to a given location

Parameters position Latitude and longitude of the desired location. Must not be null. radius Radius, specified in meters, that defines the area in which to search for a panorama, centered on the given latitude and longitude source StreetViewSource specifies the source of panoramas to search. If source is null, use the default. public void setPosition (String panoId)

Sets the StreetViewPanorama to a given location

Parameters panoId Panorama ID of the desired location. Must not be null. public void setStreetNamesEnabled (boolean enableStreetNames)

Sets whether the user is able to see street names on panoramas

Parameters enableStreetNames true if users are able to see street names on panoramas public void setUserNavigationEnabled (boolean enableUserNavigation)

Sets whether the user is able to move to another panorama

Parameters enableUserNavigation true if users are allowed to move to another panorama public void setZoomGesturesEnabled (boolean enableZoom)

Sets whether the user is able to use zoom gestures

Parameters enableZoom true if users are allowed to use zoom gestures

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` is the primary class for using Street View in the Google Maps SDK for Android, allowing developers to control and interact with Street View panoramas."],["Instances of `StreetViewPanorama` cannot be created directly and must be obtained from a `StreetViewPanoramaFragment` or `StreetViewPanoramaView` using `getStreetViewPanoramaAsync()`."],["All interactions and modifications with the `StreetViewPanorama` object must be done on the main thread to avoid exceptions."],["The class provides methods to control the camera, user navigation, gestures, display settings, and position of the Street View panorama."],["Developers can set listeners to respond to events like camera changes, panorama changes, clicks, and long clicks within the Street View panorama."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4