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:
Adrian Cojocaru
2025-02-27 13:42:13 +02:00
committed by GitHub
parent f5f6e7faa2
commit ce4dcb7a9b
20 changed files with 1016 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ MLN_DARWIN_OBJC_HEADERS = [
"src/MLNStyle.h",
"src/MLNStyleLayer.h",
"src/MLNStyleValue.h",
"src/MLNTileOperation.h",
"src/MLNTilePyramidOfflineRegion.h",
"src/MLNTileServerOptions.h",
"src/MLNTileSource.h",

View File

@@ -0,0 +1,13 @@
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, MLNTileOperation) {
MLNTileOperationRequestedFromCache, ///< A read request from the cache
MLNTileOperationRequestedFromNetwork, ///< A read request from the online source
MLNTileOperationLoadFromNetwork, ///< Tile data from the network has been retrieved
MLNTileOperationLoadFromCache, ///< Tile data from the cache has been retrieved
MLNTileOperationStartParse, ///< Background processing of tile data has been initiated
MLNTileOperationEndParse, ///< Background processing of tile data has been completed
MLNTileOperationError, ///< An error occurred while loading the tile
MLNTileOperationCancelled, ///< Loading of a tile was cancelled
MLNTileOperationNullOp, ///< No operation has taken place
};