-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Option to provide custom values for location camera transition #14606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome stuff @LukasPaczos
} | ||
|
||
void setCameraMode(@CameraMode.Mode final int cameraMode, @Nullable Location lastLocation, | ||
@Nullable OnLocationCameraTransitionListener internalTransitionListener) { | ||
@Nullable OnLocationCameraTransitionListener internalTransitionListener, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
listeners should ideally be set as last parameter to improve consumption from kotlin code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context in this user report: #12010
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I've already pushed the changes but since OnLocationCameraTransitionListener
is not a SAM interface it doesn't actually matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, in any case it's a bit more readable 🙃
/cc @mapbox/navigation-android |
81954a2
to
48b07bf
Compare
48b07bf
to
eb78633
Compare
Closes #14539.
This PR adds an option to provide custom transition duration, zoom, bearing and tilt values for the location tracking transition animation.