summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/OnLocationCameraTransitionListener.java
blob: 824432efc3b2621cbf47a51ffcb073766cce193c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.mapbox.mapboxsdk.location;

import com.mapbox.mapboxsdk.location.modes.CameraMode;

/**
 * Callback for {@link CameraMode } transition state.
 */
public interface OnLocationCameraTransitionListener {
  /**
   * Invoked when the camera mode transition animation has been finished.
   *
   * @param cameraMode camera mode change that initiated the transition
   */
  void onLocationCameraTransitionFinished(@CameraMode.Mode int cameraMode);

  /**
   * Invoked when the camera mode transition animation has been canceled.
   * <p>
   * The camera mode is set regardless of the cancellation of the transition animation.
   *
   * @param cameraMode camera mode change that initiated the transition
   */
  void onLocationCameraTransitionCanceled(@CameraMode.Mode int cameraMode);
}