This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] CameraMode transition animation and result listeners
- Loading branch information
1 parent
ebd87a5
commit b4d9266
Showing
8 changed files
with
523 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...idSDK/src/main/java/com/mapbox/mapboxsdk/location/OnLocationCameraTransitionListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.