A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/model/VisibleRegion below:

VisibleRegion | Google Play services

VisibleRegion

Stay organized with collections Save and categorize content based on your preferences.

Contains the four points defining the four-sided polygon that is visible in a map's camera. This polygon can be a trapezoid instead of a rectangle, because a camera can have tilt. If the camera is directly over the center of the camera, the shape is rectangular, but if the camera is tilted, the shape will appear to be a trapezoid whose smallest side is closest to the point of view.

Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Field Summary public final LatLng farLeft LatLng object that defines the far left corner of the camera. public final LatLng farRight LatLng object that defines the far right corner of the camera. public final LatLngBounds latLngBounds The smallest bounding box that includes the visible region defined in this class. public final LatLng nearLeft LatLng object that defines the bottom left corner of the camera. public final LatLng nearRight LatLng object that defines the bottom right corner of the camera. Public Constructor Summary Public Method Summary Inherited Method Summary From class java.lang.Object Object

clone()

boolean 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)

Fields public final LatLng farLeft

LatLng object that defines the far left corner of the camera.

public final LatLng farRight

LatLng object that defines the far right corner of the camera.

public final LatLngBounds latLngBounds

The smallest bounding box that includes the visible region defined in this class.

If this box crosses the 180° meridian (the vertical line from north to south), the longitude in farRight will be negative and the longitude in farLeft will be positive. This rule also applies to nearRight and nearLeft.

public final LatLng nearLeft

LatLng object that defines the bottom left corner of the camera.

public final LatLng nearRight

LatLng object that defines the bottom right corner of the camera.

Public Constructors public VisibleRegion (LatLng nearLeft, LatLng nearRight, LatLng farLeft, LatLng farRight, LatLngBounds latLngBounds)

Creates a new VisibleRegion given the four corners of the camera. The LatLng parameters must define a convex shape (the edges of the resulting shape mustn't cross). No bounds checking is performed at runtime.

Parameters 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. 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. latLngBounds the smallest bounding box that includes the visible region defined in this class. If this box crosses the 180° meridian (the vertical line from north to south), the longitude in farRight will be negative and the longitude in farLeft will be positive. Same applies to nearRight and nearLeft. Public Methods public boolean equals (Object o)

Compares this VisibleRegion to another object. If the other object is actually a pointer to this object, or if all four corners and the bounds of the two objects are the same, this method returns true. Otherwise, this method returns false.

Parameters o an Object. Return true if both objects are the same object, or if all four corners and the bounds of the two objects are the same. Return false otherwise. public void writeToParcel (Parcel out, int flags)

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`VisibleRegion` defines the 4-sided polygon visible on a map, which can be a trapezoid or rectangle depending on camera tilt."],["It provides access to the geographical coordinates of the visible region's corners: `farLeft`, `farRight`, `nearLeft`, `nearRight`."],["`latLngBounds` represents the smallest bounding box encompassing the visible region."],["When the bounding box crosses the 180° meridian, longitudes in `farRight` and `nearRight` become negative while `farLeft` and `nearLeft` become positive."]]],["`VisibleRegion` defines a four-sided polygon visible in a map's camera, potentially a trapezoid due to camera tilt. It stores `LatLng` objects for `farLeft`, `farRight`, `nearLeft`, and `nearRight` corners, and a `latLngBounds` defining the smallest bounding box. A new `VisibleRegion` can be created using these four corner `LatLngs` and a `LatLngBounds`. It includes methods to compare (`equals`), generate a hash code (`hashCode`), provide a string representation (`toString`), and write data to a `Parcel` object (`writeToParcel`).\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4