CameraUpdate
Stay organized with collections
Save and categorize content based on your preferences.
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()
|
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.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eCameraUpdate\u003c/code\u003e objects define camera movements for Google Maps, such as zooming, panning, and tilting.\u003c/p\u003e\n"],["\u003cp\u003eYou create \u003ccode\u003eCameraUpdate\u003c/code\u003e instances using the \u003ccode\u003eCameraUpdateFactory\u003c/code\u003e class, providing specific parameters for the desired movement.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCameraUpdate\u003c/code\u003e objects are then applied to a \u003ccode\u003eGoogleMap\u003c/code\u003e object using methods like \u003ccode\u003eanimateCamera\u003c/code\u003e or \u003ccode\u003emoveCamera\u003c/code\u003e to execute the camera change.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find more detailed information and examples in the "Camera and View" section of the Android developer guide.\u003c/p\u003e\n"]]],["`CameraUpdate` objects modify a map's camera. Utilize `GoogleMap.animateCamera()` or `GoogleMap.moveCamera()` with a `CameraUpdate` instance to enact changes. Acquire `CameraUpdate` objects through the `CameraUpdateFactory`. For instance, `CameraUpdateFactory.zoomIn()` creates a zoom-in camera update, which can be applied with `map.animateCamera()`. Further details can be found in the \"Camera and View\" developer guide. `CameraUpdate` inherits methods from the `Object` class, including `equals`, `getClass`, and `toString`.\n"],null,["# CameraUpdate\n\npublic final class **CameraUpdate** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nDefines a camera move. An object of this type can be used to modify a map's camera by\ncalling [GoogleMap.animateCamera(CameraUpdate)](/android/reference/com/google/android/gms/maps/GoogleMap#animateCamera(com.google.android.gms.maps.CameraUpdate)), [GoogleMap.animateCamera(CameraUpdate, GoogleMap.CancelableCallback)](/android/reference/com/google/android/gms/maps/GoogleMap#animateCamera(com.google.android.gms.maps.CameraUpdate,%20com.google.android.gms.maps.GoogleMap.CancelableCallback)) or\n[GoogleMap.moveCamera(CameraUpdate)](/android/reference/com/google/android/gms/maps/GoogleMap#moveCamera(com.google.android.gms.maps.CameraUpdate)).\n\nTo obtain a [CameraUpdate](/android/reference/com/google/android/gms/maps/CameraUpdate)\nuse the factory class [CameraUpdateFactory](/android/reference/com/google/android/gms/maps/CameraUpdateFactory).\n\nFor example, to zoom in on a map, you can use the following code: \n\n GoogleMap map = ...;\n map.animateCamera(CameraUpdateFactory.zoomIn());\n \n### Developer Guide\n\nFor more information, read the [Camera and View](//developers.google.com/maps/documentation/android-sdk/views) developer\nguide. \n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |"]]