summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java
diff options
context:
space:
mode:
authorLangston Smith <langston.smith@mapbox.com>2019-03-04 07:21:06 -0800
committerGitHub <noreply@github.com>2019-03-04 07:21:06 -0800
commit4bc56cc5764779ec23325530dfb6acfef125ccf8 (patch)
tree7de48210f756ef14fb913171ce63c7c12e66eed7 /platform/android/MapboxGLAndroidSDK/src/main/java
parent74538406e9e7f9444e491ea23b7dc52f63d77e73 (diff)
downloadqtlocation-mapboxgl-4bc56cc5764779ec23325530dfb6acfef125ccf8.tar.gz
[android] added areAllGesturesEnabled() method and test (#14022)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
index 3e24b8c797..034dc63c35 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
@@ -939,6 +939,18 @@ public final class UiSettings {
setQuickZoomGesturesEnabled(enabled);
}
+ /**
+ * <p>
+ * Retrieves the current status of whether all gestures are enabled.
+ * </p>
+ *
+ * @return If true, all gestures are enabled.
+ */
+ public boolean areAllGesturesEnabled() {
+ return rotateGesturesEnabled && tiltGesturesEnabled && zoomGesturesEnabled
+ && scrollGesturesEnabled && doubleTapGesturesEnabled && quickZoomGesturesEnabled;
+ }
+
private void saveFocalPoint(Bundle outState) {
outState.putParcelable(MapboxConstants.STATE_USER_FOCAL_POINT, getFocalPoint());
}