public final class Transform extends 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.OnCameraDidChangeListener
onCameraDidChange
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)
© 2015–2019 Mapbox. All rights reserved.