summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLCompassButton_Private.h
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-07-09 15:47:01 -0700
committerJason Wray <jason@mapbox.com>2019-07-09 16:10:20 -0700
commit593e8cb210934b0422f77797a4748b7ef1ef1e2b (patch)
tree6a4ca3fda1f7e045420bc4c48e84b3362f5d7066 /platform/ios/src/MGLCompassButton_Private.h
parent08a4ab802a6591d64f9e6a9f517083093a4c1b08 (diff)
downloadqtlocation-mapboxgl-593e8cb210934b0422f77797a4748b7ef1ef1e2b.tar.gz
Add MGLCompassButton_Private.h, move gesture to view implementation
Diffstat (limited to 'platform/ios/src/MGLCompassButton_Private.h')
-rw-r--r--platform/ios/src/MGLCompassButton_Private.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/ios/src/MGLCompassButton_Private.h b/platform/ios/src/MGLCompassButton_Private.h
new file mode 100644
index 0000000000..50918d8c45
--- /dev/null
+++ b/platform/ios/src/MGLCompassButton_Private.h
@@ -0,0 +1,20 @@
+#import <UIKit/UIKit.h>
+#import <CoreLocation/CoreLocation.h>
+
+#import <Mapbox/MGLCompassButton.h>
+
+@class MGLMapView;
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface MGLCompassButton (Private)
+
++ (instancetype)compassButtonWithMapView:(MGLMapView *)mapView;
+
+@property (nonatomic, weak) MGLMapView *mapView;
+
+- (void)updateCompassWithDirection:(CLLocationDirection)direction;
+
+@end
+
+NS_ASSUME_NONNULL_END