summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2019-04-22 14:52:25 -0700
committerFabian Guerra <fabian.guerra@mapbox.com>2019-04-22 15:25:16 -0700
commit8caa7a380524d0722cfb63767e814427fdcee49f (patch)
tree17819e6860df06d1d774eb8474774d1be53b0ea1
parentbc7ae969c40ea0d7de39ccf0451da94f61534d55 (diff)
downloadqtlocation-mapboxgl-8caa7a380524d0722cfb63767e814427fdcee49f.tar.gz
[ios] Make MGLLocationManager protocol swift friendly.
-rw-r--r--platform/darwin/src/MGLLocationManager.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLLocationManager.h b/platform/darwin/src/MGLLocationManager.h
index d6cfab60d8..ecb9192981 100644
--- a/platform/darwin/src/MGLLocationManager.h
+++ b/platform/darwin/src/MGLLocationManager.h
@@ -31,7 +31,13 @@ NS_ASSUME_NONNULL_BEGIN
@see `CLLocationManager.distanceFilter`
*/
-@property(nonatomic, assign) CLLocationDistance distanceFilter;
+- (CLLocationDistance)distanceFilter;
+
+/**
+ Sets the minimum update distance in meters.
+ @param distanceFilter The distance filter in meters.
+ */
+- (void)setDistanceFilter:(CLLocationDistance) distanceFilter;
/**
Specifies the accuracy of the location data.
@@ -43,7 +49,14 @@ NS_ASSUME_NONNULL_BEGIN
@see `CLLocationManager.desiredAccuracy`
*/
-@property (nonatomic, assign) CLLocationAccuracy desiredAccuracy;
+- (CLLocationAccuracy)desiredAccuracy;
+
+/**
+ Sets the desired location accuracy.
+
+ @param desiredAccuracy The desired location accuracy.
+ */
+- (void)setDesiredAccuracy:(CLLocationAccuracy)desiredAccuracy;
/**
Specifies the type of user activity associated with the location updates.
@@ -56,7 +69,14 @@ NS_ASSUME_NONNULL_BEGIN
@see `CLLocationManager.activityType`
*/
-@property (nonatomic, assign) CLActivityType activityType;
+- (CLActivityType)activityType;
+
+/**
+ Sets the type of user activity associated with the location updates.
+
+ @param activityType The location's manager activity type.
+ */
+- (void)setActivityType:(CLActivityType)activityType;
@required