java.lang.Object |
↳ |
com.google.android.gms.maps.StreetViewPanoramaOptions |
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
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()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Public Constructors
public
StreetViewPanoramaOptions
()
Creates a new StreetViewPanoramaOptions object.
Public Methods
public
Boolean
getPanningGesturesEnabled
()
Returns |
Boolean |
true if users are initially able to pan via gestures on Street View panoramas
|
public
String
getPanoramaId
()
Returns |
String |
The initial panorama ID for the Street View panorama, or null if
unspecified.
|
public
LatLng
getPosition
()
Returns |
LatLng |
The initial position for the Street View panorama, or null if
unspecified.
|
public
Integer
getRadius
()
Returns |
Integer |
The initial radius used to search for a Street View panorama, or null if
unspecified.
|
public
Boolean
getStreetNamesEnabled
()
Returns |
Boolean |
true if users are initially able to see street names on Street View panoramas
|
public
Boolean
getUseViewLifecycleInFragment
()
Returns |
Boolean |
the useViewLifecycleInFragment option, or null if unspecified.
|
public
Boolean
getUserNavigationEnabled
()
Returns |
Boolean |
true if users are initially able to move to different Street View panoramas
|
public
Boolean
getZoomGesturesEnabled
()
Returns |
Boolean |
true if users are initially able to zoom via gestures on Street View
panoramas
|
Toggles the ability for users to use pan around on panoramas using gestures.
See setPanningGesturesEnabled(boolean)
for more details.
The default is true
Parameters |
enabled |
boolean
|
Specifies the initial camera for the Street View panorama.
Parameters |
camera |
StreetViewPanoramaCamera
|
Specifies the initial position for the Street View panorama based on a panorama id.
The position set by the panoramaID takes precedence over a position set by a LatLng
Specifies the initial position for the Street View panorama based upon location.
The position set by the panoramaID, if set, takes precedence over a position set by a LatLng
Parameters |
position |
LatLng
|
Specifies the initial position for the Street View panorama based upon location and radius.
The position set by the panoramaID, if set, takes precedence over a position set by a LatLng
Parameters |
position |
LatLng
|
radius |
Integer
|
Toggles the ability for users to see street names on panoramas.
See setStreetNamesEnabled(boolean)
for more details.
The default is true
Parameters |
enabled |
boolean
|
public
String
toString
()
public
StreetViewPanoramaOptions
useViewLifecycleInFragment
(boolean useViewLifecycleInFragment)
When using a StreetViewPanoramaFragment
, this flag specifies whether the lifecycle of
the Street View panorama should be tied to the fragment's view or the fragment itself. The
default value is false
, tying the lifecycle of the Street View panorama to the
fragment.
Using the lifecycle of the fragment allows faster rendering of the Street View panorama when
the fragment is detached and reattached, because the underlying GL context is preserved. This
has the cost that detaching the fragment, but not destroying it, will not release memory used
by the panorama.
Using the lifecycle of a fragment's view means that a Street View panorama is not reused when
the fragment is detached and reattached. This will cause the map to re-render from scratch,
which can take a few seconds. It also means that while a fragment is detached, and therefore
has no view, all StreetViewPanorama
methods will throw NullPointerException
.
Parameters |
useViewLifecycleInFragment |
boolean
|
public
void
writeToParcel
(Parcel out, int flags)
Parameters |
out |
Parcel
|
flags |
int
|
Toggles the ability for users to zoom on panoramas using gestures.
See setZoomGesturesEnabled(boolean)
for more details.
The default is true
Parameters |
enabled |
boolean
|