Package com.yandex.mapkit.map
Interface CameraBounds
interface CameraBounds
The object that is used to interact with the map bounds.
Summary
Methods
Type and modifiers |
Method and Description |
float |
getMinZoom() |
float |
getMaxZoom() |
void |
setMinZoomPreference(float zoom) |
void |
setMaxZoomPreference(float zoom) |
void |
resetMinMaxZoomPreference() |
getLatLngBounds() |
|
void |
setLatLngBounds(@Nullable BoundingBox latLngBounds) |
boolean |
isValid() |
Methods
getMinZoom
float getMinZoom() |
Minimum available zoom level considering zoom level hint provided via #setMinZoomPreference.
getMaxZoom
float getMaxZoom() |
Maximum available zoom level considering zoom level hint provided via #setMaxZoomPreference
setMinZoomPreference
void setMinZoomPreference(float zoom) |
Set minimum available zoom level hint.
setMaxZoomPreference
void setMaxZoomPreference(float zoom) |
Set maximum available zoom level hint.
resetMinMaxZoomPreference
void resetMinMaxZoomPreference() |
Reset minimum and maximum available zoom level hints.
getLatLngBounds
@Nullable |
Latitudes should be in range [-89.3, 89.3].
Longitudes should be in range [-180, 180).
Optional property, can be null.
setLatLngBounds
void setLatLngBounds(@Nullable BoundingBox latLngBounds) |
isValid
boolean isValid() |
Tells if this CameraBounds is valid or not.
Any other method (except for this one) called on an invalid CameraBounds will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.