public class VisibleRegion extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<VisibleRegion> |
CREATOR
Inner class responsible for recreating Parcels into objects.
|
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 VisibleRegion given the four corners of the camera.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
|
boolean |
equals(Object o)
Compares this VisibleRegion to another object.
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
The string representation of the object.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
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 far left corner of the region.farRight
- A LatLng object containing the latitude and longitude of the far right 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 right corner of the region.latLngBounds
- The smallest bounding box that includes the visible region defined in this class.public boolean equals(Object o)
public String toString()
public int hashCode()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written© 2015–2019 Mapbox. All rights reserved.