Table of Contents

Enum RuntimeEventMask

Namespace
Maplibre.NativeFfi.Runtime
Assembly
Maplibre.NativeFfi.dll

Event types a map or a runtime queues.

[Flags]
public enum RuntimeEventMask : ulong

Fields

All = AllRuntimeEvents | AllMapEvents

Selects every event type this binding declares.

AllMapEvents = MapCameraWillChange | MapCameraIsChanging | MapCameraDidChange | MapStyleLoaded | MapLoadingStarted | MapLoadingFinished | MapLoadingFailed | MapIdle | MapRenderUpdateAvailable | MapRenderError | MapStillImageFinished | MapStillImageFailed | MapRenderFrameStarted | MapRenderFrameFinished | MapRenderMapStarted | MapRenderMapFinished | MapStyleImageMissing | MapTileAction | MapCameraTransitionFinished

Selects every map-originated event type this binding declares.

AllRuntimeEvents = OfflineRegionStatusChanged | OfflineRegionResponseError | OfflineRegionTileCountLimitExceeded | OfflineOperationCompleted

Selects every runtime-originated event type this binding declares.

MapCameraDidChange = 8
MapCameraIsChanging = 4
MapCameraTransitionFinished = 8388608
MapCameraWillChange = 2
MapIdle = 256
MapLoadingFailed = 128
MapLoadingFinished = 64
MapLoadingStarted = 32
MapRenderError = 1024
MapRenderFrameFinished = 16384
MapRenderFrameStarted = 8192
MapRenderMapFinished = 65536
MapRenderMapStarted = 32768
MapRenderUpdateAvailable = 512
MapStillImageFailed = 4096
MapStillImageFinished = 2048
MapStyleImageMissing = 131072
MapStyleLoaded = 16
MapTileAction = 262144
None = 0

Selects no event type.

OfflineOperationCompleted = 4194304
OfflineRegionResponseError = 1048576
OfflineRegionStatusChanged = 524288
OfflineRegionTileCountLimitExceeded = 2097152

Remarks

Each bit is 1 shifted left by the RuntimeEventType value it selects, so a mask a host computes from a decoded event type matches these constants.

SetEventMask(RuntimeEventMask) reads the bits in AllMapEvents and SetEventMask(RuntimeEventMask) reads the bits in AllRuntimeEvents, so both accept All and a host reads a mask, changes one bit, and writes it back.