public final class Transform extends java.lang.Object implements MapView.OnCameraDidChangeListener
Resembles the current Map transformation.
Responsible for synchronising CameraPosition state and notifying camera change listeners.
| Modifier and Type | Method and Description |
|---|---|
void |
animateCamera(MapboxMap mapboxMap,
CameraUpdate update,
int durationMs,
MapboxMap.CancelableCallback callback)
Internal use.
|
CameraPosition |
getCameraPosition() |
void |
moveCamera(MapboxMap mapboxMap,
CameraUpdate update,
MapboxMap.CancelableCallback callback)
Internal use.
|
void |
onCameraDidChange(boolean animated)
Called when the camera did change.
|
@Nullable @UiThread public final CameraPosition getCameraPosition()
public void onCameraDidChange(boolean animated)
MapView.OnCameraDidChangeListeneronCameraDidChange in interface MapView.OnCameraDidChangeListener@UiThread
public final void moveCamera(@NonNull
MapboxMap mapboxMap,
CameraUpdate update,
@Nullable
MapboxMap.CancelableCallback callback)
@UiThread
public final void animateCamera(@NonNull
MapboxMap mapboxMap,
CameraUpdate update,
int durationMs,
@Nullable
MapboxMap.CancelableCallback callback)