DJI Mobile SDK Documentation

class DJICameraUpdateFactory

final class DJICameraUpdateFactory
Package:com.dji.mapkit.core.camera
Description:

Factory for creating DJICameraUpdate objects.

Class Members:
method newCameraPosition
static DJICameraUpdate newCameraPosition(@NonNull DJICameraPosition cameraPosition)
Package:com.dji.mapkit.core.camera
Description:

Creates a camera update that moves the center of the screen to the DJICameraPosition.

Input Parameters:
@NonNull DJICameraPosition cameraPositionThe new position of the camera.
Return:
static DJICameraUpdateA DJICameraUpdate object.
method newLatLngBounds
static DJICameraUpdate newLatLngBounds(@NonNull DJILatLngBounds bounds, int zoom, int padding)
Package:com.dji.mapkit.core.camera
Description:

Creates a camera update that moves the center of the screen to the DJILatLngBounds at the given zoom level or with the given padding.

Input Parameters:
@NonNull DJILatLngBounds boundsThe bounding box.
int zoomThe zoom level.
int paddingAdditional space in pixels to leave between the bounds and the edge.
Return:
static DJICameraUpdateA DJICameraUpdate object.
method newLatLngBounds
static DJICameraUpdate newLatLngBounds(@NonNull DJILatLngBounds bounds, int zoom)
Package:com.dji.mapkit.core.camera
Description:

Creates a camera update that moves the center of the screen to the DJILatLngBounds at the given zoom level.

Input Parameters:
@NonNull DJILatLngBounds boundsThe bounding box.
int zoomThe zoom level.
Return:
static DJICameraUpdateA DJICameraUpdate object.