CameraUpdate

  • CameraUpdate objects define camera movements for Google Maps, used to change the map's view.

  • You can apply these camera updates using methods like animateCamera and moveCamera on a GoogleMap object.

  • To create CameraUpdate instances, utilize the CameraUpdateFactory class, providing various camera manipulation options.

  • Refer to the "Camera and View" developer guide for detailed information on camera functionalities in Google Maps Android API.

public final class CameraUpdate extends Object

Defines a camera move. An object of this type can be used to modify a map's camera by calling animateCamera(CameraUpdate), animateCamera(CameraUpdate, GoogleMap.CancelableCallback) or moveCamera(CameraUpdate).

To obtain a CameraUpdate use the factory class CameraUpdateFactory.

For example, to zoom in on a map, you can use the following code:

GoogleMap map = ...;
 map.animateCamera(CameraUpdateFactory.zoomIn());
 

Developer Guide

For more information, read the Camera and View developer guide.

Inherited Method Summary