public final class CameraPosition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CameraPosition.Builder
Builder for composing CameraPosition objects.
|
Modifier and Type | Field and Description |
---|---|
double |
bearing
Direction that the camera is pointing in, in degrees clockwise from north.
|
static <any> |
CREATOR |
static CameraPosition |
DEFAULT |
LatLng |
target
The location that the camera is pointing at.
|
double |
tilt
The angle, in degrees, of the camera angle from the nadir (directly facing the Earth).
|
double |
zoom
Zoom level near the center of the screen.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
boolean |
equals(Object o)
Compares this
CameraPosition object with another CameraPosition and
determines if their target, zoom, tilt, and bearing match. |
int |
hashCode()
Gives an integer which can be used as the bucket number for storing elements of the set/map.
|
String |
toString()
Returns a String with the camera target, zoom, bearing and tilt.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final CameraPosition DEFAULT
public static final <any> CREATOR
public final double bearing
public final LatLng target
public final double tilt
public final double zoom
public int describeContents()
public void writeToParcel(Parcel out, int flags)
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written. May be 0 or
#PARCELABLE_WRITE_RETURN_VALUE
.public String toString()
public boolean equals(Object o)
CameraPosition
object with another CameraPosition
and
determines if their target, zoom, tilt, and bearing match.equals
in class Object
o
- Another CameraPosition
to compare with this object.CameraPosition
object.
Else, false.public int hashCode()
© 2015–2018 Mapbox. All rights reserved.