public class VisibleRegion
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static <any> |
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.
|
| 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(java.lang.Object o)
Compares this VisibleRegion to another object.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.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 <any> 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(java.lang.Object o)
equals in class java.lang.Objecto - The Object to compare with.@NonNull public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
public void writeToParcel(@NonNull
Parcel out,
int flags)
out - The Parcel in which the object should be written.flags - Additional flags about how the object should be written