summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLUserLocation.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-23 10:35:59 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-23 10:35:59 -0700
commit3e22369f27ba4a0b1273c8934bfb0f59d9aa96c5 (patch)
tree9f0faeb5af456dc559b48d114883b2f6771400ba /platform/ios/src/MGLUserLocation.h
parent2d32336a41dac77b6182642b7067a23add12eb09 (diff)
downloadqtlocation-mapboxgl-3e22369f27ba4a0b1273c8934bfb0f59d9aa96c5.tar.gz
[ios, osx] Eliminated platform/{ios,osx}/include
Also updated various project references to be group-relative, so Xcode chooses the right directory by default when adding a new file. Fixes #4770.
Diffstat (limited to 'platform/ios/src/MGLUserLocation.h')
-rw-r--r--platform/ios/src/MGLUserLocation.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/platform/ios/src/MGLUserLocation.h b/platform/ios/src/MGLUserLocation.h
new file mode 100644
index 0000000000..6160413510
--- /dev/null
+++ b/platform/ios/src/MGLUserLocation.h
@@ -0,0 +1,42 @@
+#import <Foundation/Foundation.h>
+#import <CoreLocation/CoreLocation.h>
+
+#import "MGLAnnotation.h"
+
+#import "MGLTypes.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+/** The MGLUserLocation class defines a specific type of annotation that identifies the user’s current location. You do not create instances of this class directly. Instead, you retrieve an existing MGLUserLocation object from the userLocation property of the map view displayed in your application. */
+@interface MGLUserLocation : NSObject <MGLAnnotation>
+
+#pragma mark Determining the User’s Position
+
+/**
+ The current location of the device. (read-only)
+
+ This property contains `nil` if the map view is not currently showing the user location or if the user’s location has not yet been determined.
+ */
+@property (nonatomic, readonly, nullable) CLLocation *location;
+
+/** A Boolean value indicating whether the user’s location is currently being updated. (read-only) */
+@property (nonatomic, readonly, getter=isUpdating) BOOL updating;
+
+/**
+ The heading of the user location. (read-only)
+
+ This property is `nil` if the user location tracking mode is not `MGLUserTrackingModeFollowWithHeading`.
+ */
+@property (nonatomic, readonly, nullable) CLHeading *heading;
+
+#pragma mark Accessing the User Annotation Text
+
+/** The title to display for the user location annotation. */
+@property (nonatomic, copy) NSString *title;
+
+/** The subtitle to display for the user location annotation. */
+@property (nonatomic, copy, nullable) NSString *subtitle;
+
+@end
+
+NS_ASSUME_NONNULL_END