summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView_Private.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/src/MGLMapView_Private.h')
-rw-r--r--platform/ios/src/MGLMapView_Private.h47
1 files changed, 41 insertions, 6 deletions
diff --git a/platform/ios/src/MGLMapView_Private.h b/platform/ios/src/MGLMapView_Private.h
index bffccec5fd..eff3f464a4 100644
--- a/platform/ios/src/MGLMapView_Private.h
+++ b/platform/ios/src/MGLMapView_Private.h
@@ -1,28 +1,55 @@
-#import <Mapbox/Mapbox.h>
+#import "MGLMapView.h"
+#import "MGLUserLocationAnnotationView.h"
+#import "MGLAnnotationContainerView.h"
+
+#include <mbgl/util/size.hpp>
namespace mbgl {
class Map;
class Renderer;
}
+@class MGLSource;
+
/// Minimum size of an annotation’s accessibility element.
FOUNDATION_EXTERN const CGSize MGLAnnotationAccessibilityElementMinimumSize;
/// Indicates that a method (that uses `mbgl::Map`) was called after app termination.
-FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const MGLUnderlyingMapUnavailableException;
+FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const _Nonnull MGLUnderlyingMapUnavailableException;
@interface MGLMapView (Private)
/// The map view’s OpenGL rendering context.
-@property (nonatomic, readonly) EAGLContext *context;
+@property (nonatomic, readonly, nullable) EAGLContext *context;
/// Currently shown popover representing the selected annotation.
-@property (nonatomic) UIView<MGLCalloutView> *calloutViewForSelectedAnnotation;
+@property (nonatomic, nonnull) UIView<MGLCalloutView> *calloutViewForSelectedAnnotation;
+
+/// Map observers
+- (void)cameraWillChangeAnimated:(BOOL)animated;
+- (void)cameraIsChanging;
+- (void)cameraDidChangeAnimated:(BOOL)animated;
+- (void)mapViewWillStartLoadingMap;
+- (void)mapViewDidFinishLoadingMap;
+- (void)mapViewDidFailLoadingMapWithError:(nonnull NSError *)error;
+- (void)mapViewWillStartRenderingFrame;
+- (void)mapViewDidFinishRenderingFrameFullyRendered:(BOOL)fullyRendered;
+- (void)mapViewWillStartRenderingMap;
+- (void)mapViewDidFinishRenderingMapFullyRendered:(BOOL)fullyRendered;
+- (void)mapViewDidBecomeIdle;
+- (void)mapViewDidFinishLoadingStyle;
+- (void)sourceDidChange:(nonnull MGLSource *)source;
+- (void)didFailToLoadImage:(nonnull NSString *)imageName;
/** Triggers another render pass even when it is not necessary. */
-- (void)setNeedsGLDisplay;
+- (void)setNeedsRerender;
+
+/// Synchronously render a frame of the map.
+- (void)renderSync;
-- (mbgl::Renderer *)renderer;
+- (nonnull mbgl::Map *)mbglMap;
+
+- (nonnull mbgl::Renderer *)renderer;
/** Returns whether the map view is currently loading or processing any assets required to render the map */
- (BOOL)isFullyLoaded;
@@ -30,4 +57,12 @@ FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const MGLUnderlyingMapUnavailableE
/** Empties the in-memory tile cache. */
- (void)didReceiveMemoryWarning;
+- (void)pauseRendering:(nonnull NSNotification *)notification;
+- (void)resumeRendering:(nonnull NSNotification *)notification;
+@property (nonatomic, nonnull) MGLUserLocationAnnotationView *userLocationAnnotationView;
+@property (nonatomic, nonnull) MGLAnnotationContainerView *annotationContainerView;
+@property (nonatomic, readonly) BOOL enablePresentsWithTransaction;
+
+- (BOOL) _opaque;
+
@end