Add iOS/macOS observer hooks (#3245)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <MLNTileOperation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -227,6 +228,50 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (BOOL)mapView:(MLNMapView *)mapView shouldRemoveStyleImage:(NSString *)imageName;
|
||||
|
||||
// MARK: Shader Compilation
|
||||
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
shaderWillCompile:(NSInteger)id
|
||||
backend:(NSInteger)backend
|
||||
defines:(NSString *)defines;
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
shaderDidCompile:(NSInteger)id
|
||||
backend:(NSInteger)backend
|
||||
defines:(NSString *)defines;
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
shaderDidFailCompile:(NSInteger)id
|
||||
backend:(NSInteger)backend
|
||||
defines:(NSString *)defines;
|
||||
|
||||
// MARK: Glyph Requests
|
||||
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
glyphsWillLoad:(NSArray<NSString *> *)fontStack
|
||||
range:(NSRange)range;
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
glyphsDidLoad:(NSArray<NSString *> *)fontStack
|
||||
range:(NSRange)range;
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
glyphsDidError:(NSArray<NSString *> *)fontStack
|
||||
range:(NSRange)range;
|
||||
|
||||
// MARK: Tile Requests
|
||||
|
||||
- (void)mapView:(MLNMapView *)mapView
|
||||
tileDidTriggerAction:(MLNTileOperation)operation
|
||||
x:(NSInteger)x
|
||||
y:(NSInteger)y
|
||||
z:(NSInteger)z
|
||||
wrap:(NSInteger)wrap
|
||||
overscaledZ:(NSInteger)overscaledZ
|
||||
sourceID:(NSString *)sourceID;
|
||||
|
||||
// MARK: Sprite Requests
|
||||
|
||||
- (void)mapView:(MLNMapView *)mapView spriteWillLoad:(NSString *)id url:(NSString *)url;
|
||||
- (void)mapView:(MLNMapView *)mapView spriteDidLoad:(NSString *)id url:(NSString *)url;
|
||||
- (void)mapView:(MLNMapView *)mapView spriteDidError:(NSString *)id url:(NSString *)url;
|
||||
|
||||
// MARK: Managing the Appearance of Annotations
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user