[android] added areAllGesturesEnabled() method and test (#14022)

This commit is contained in:
Langston Smith
2019-03-04 07:21:06 -08:00
committed by GitHub
parent 74538406e9
commit 4bc56cc576
2 changed files with 27 additions and 0 deletions

View File

@@ -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());
}