public class VisibleRegion extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<VisibleRegion> |
CREATOR |
LatLng |
farLeft
LatLng object that defines the far left corner of the camera.
|
LatLng |
farRight
LatLng object that defines the far right corner of the camera.
|
LatLngBounds |
latLngBounds
The smallest bounding box that includes the visible region defined in this class.
|
LatLng |
nearLeft
LatLng object that defines the bottom left corner of the camera.
|
LatLng |
nearRight
LatLng object that defines the bottom right corner of the camera.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
VisibleRegion(LatLng farLeft,
LatLng farRight,
LatLng nearLeft,
LatLng nearRight,
LatLngBounds latLngBounds)
Creates a new VisibleRegion given the four corners of the camera.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o)
Compares this VisibleRegion to another object.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public final LatLng farLeft
public final LatLng farRight
public final LatLng nearLeft
public final LatLng nearRight
public final LatLngBounds latLngBounds
public static final Parcelable.Creator<VisibleRegion> CREATOR
public VisibleRegion(LatLng farLeft, LatLng farRight, LatLng nearLeft, LatLng nearRight, LatLngBounds latLngBounds)
farLeft
- A LatLng object containing the latitude and longitude of the near left corner of the region.farRight
- A LatLng object containing the latitude and longitude of the near left corner of the region.nearLeft
- A LatLng object containing the latitude and longitude of the near left corner of the region.nearRight
- A LatLng object containing the latitude and longitude of the near left corner of the region.latLngBounds
- The smallest bounding box that includes the visible region defined in this class.public boolean equals(Object o)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
© 2015–2017 Mapbox. All rights reserved.