summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.h
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-01-05 04:06:44 -0500
committerJason Wray <jason@mapbox.com>2018-02-27 18:27:42 -0500
commit68a9e2ea926db80010ade77cda77ced53d412b28 (patch)
tree412583df54c9a39225fea5b3d51bb294632121c6 /platform/ios/src/MGLMapView.h
parent66609c975108d44483f4976dc2d73bd26849fac6 (diff)
downloadqtlocation-mapboxgl-68a9e2ea926db80010ade77cda77ced53d412b28.tar.gz
[ios] Provide haptic feedback when user rotates to due north
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r--platform/ios/src/MGLMapView.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 9c18965b09..44130f3c6d 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -484,6 +484,19 @@ MGL_EXPORT IB_DESIGNABLE
@property(nonatomic, getter=isPitchEnabled) BOOL pitchEnabled;
/**
+ A Boolean value that determines whether the user will receive haptic feedback
+ for certain interactions with the map.
+
+ When this property is set to `YES`, the default, a `UIImpactFeedbackStyleLight`
+ haptic feedback event be played when the user rotates the map to due north
+ (0°).
+
+ This feature requires a device that supports haptic feedback, running iOS 10 or
+ newer.
+ */
+@property(nonatomic, getter=isHapticFeedbackEnabled) BOOL hapticFeedbackEnabled;
+
+/**
A floating-point value that determines the rate of deceleration after the user
lifts their finger.