summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapAccessibilityElement.h
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2017-11-09 16:28:31 +0100
committerTobrun <tobrun.van.nuland@gmail.com>2017-11-09 16:28:31 +0100
commitf82c628f3070076256513eff3431ccaff8ea1f51 (patch)
tree284f87329993073f62e091dbff194a4a9758e0d4 /platform/ios/src/MGLMapAccessibilityElement.h
parenta339dcc6cc16c991fbc083cdca99c7fc440221df (diff)
parenta936fd6f8a625e8a95c3d1ab524b8dddbbbb5ccd (diff)
downloadqtlocation-mapboxgl-f82c628f3070076256513eff3431ccaff8ea1f51.tar.gz
Merge branch 'release-agua' into tvn-merge-releaseupstream/tvn-merge-release
Diffstat (limited to 'platform/ios/src/MGLMapAccessibilityElement.h')
-rw-r--r--platform/ios/src/MGLMapAccessibilityElement.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapAccessibilityElement.h b/platform/ios/src/MGLMapAccessibilityElement.h
new file mode 100644
index 0000000000..952f6cbf2f
--- /dev/null
+++ b/platform/ios/src/MGLMapAccessibilityElement.h
@@ -0,0 +1,54 @@
+#import <UIKit/UIKit.h>
+
+#import "MGLFoundation.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@protocol MGLFeature;
+
+/// Unique identifier representing a single annotation in mbgl.
+typedef uint32_t MGLAnnotationTag;
+
+/** An accessibility element representing something that appears on the map. */
+MGL_EXPORT
+@interface MGLMapAccessibilityElement : UIAccessibilityElement
+
+@end
+
+/** An accessibility element representing a map annotation. */
+@interface MGLAnnotationAccessibilityElement : MGLMapAccessibilityElement
+
+/** The tag of the annotation represented by this element. */
+@property (nonatomic) MGLAnnotationTag tag;
+
+- (instancetype)initWithAccessibilityContainer:(id)container tag:(MGLAnnotationTag)identifier NS_DESIGNATED_INITIALIZER;
+
+@end
+
+/** An accessibility element representing a map feature. */
+MGL_EXPORT
+@interface MGLFeatureAccessibilityElement : MGLMapAccessibilityElement
+
+/** The feature represented by this element. */
+@property (nonatomic, strong) id <MGLFeature> feature;
+
+- (instancetype)initWithAccessibilityContainer:(id)container feature:(id <MGLFeature>)feature NS_DESIGNATED_INITIALIZER;
+
+@end
+
+/** An accessibility element representing a place feature. */
+MGL_EXPORT
+@interface MGLPlaceFeatureAccessibilityElement : MGLFeatureAccessibilityElement
+@end
+
+/** An accessibility element representing a road feature. */
+MGL_EXPORT
+@interface MGLRoadFeatureAccessibilityElement : MGLFeatureAccessibilityElement
+@end
+
+/** An accessibility element representing the MGLMapView at large. */
+MGL_EXPORT
+@interface MGLMapViewProxyAccessibilityElement : UIAccessibilityElement
+@end
+
+NS_ASSUME_NONNULL_END