Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Hook to prevent gesture execution #11170

Closed
tobrun opened this issue Feb 12, 2018 · 2 comments
Closed

Hook to prevent gesture execution #11170

tobrun opened this issue Feb 12, 2018 · 2 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@tobrun
Copy link
Member

tobrun commented Feb 12, 2018

We deprecated TrackingSettings as part of MyLocationView deprecation in #9771. We haven't exposed the equivalent functionality in a plugin. To support the same functionality we need to refactor the gesture code to allow a external plugin to determine if a gesture is allowed to occur or its result should be ignored.

eg. when creating a locked down navigation app and we're tracking the location of a user, we would like to be able to react on the user starting to pan the map. If the following method returns true, the gesture occurs if not the result of the gesture is ignored.

boolean isCameraChangeAllowed(int CameraChangeType)

Having above + being able to set a focal point should result in supporting the same use-cases.

cc @cammace @LukasPaczos

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Feb 12, 2018
@tobrun tobrun added this to the android-v6.0.0 milestone Feb 12, 2018
@LukasPaczos
Copy link
Member

Alternatively, we can include camera/location managing plugin as a compileOnly dependency in the Maps SDK and execute gestures + camera checks logic only if the plugin is present.

@LukasPaczos
Copy link
Member

Closing as this won't be needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

2 participants