Struct RuntimeEvent
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
An event that a runtime or one of its maps raised.
public readonly record struct RuntimeEvent : IEquatable<RuntimeEvent>
- Implements
- Inherited Members
Remarks
See mln_runtime_event in the C API reference.
Constructors
RuntimeEvent(RuntimeEventType, RuntimeEventSourceType, ulong, ulong, string, PayloadValue)
An event that a runtime or one of its maps raised.
public RuntimeEvent(RuntimeEventType Type, RuntimeEventSourceType SourceType, ulong Source, ulong Generation, string Message, RuntimeEvent.PayloadValue Payload)
Parameters
TypeRuntimeEventTypeSourceTypeRuntimeEventSourceTypeSourceulongThe runtime or map that raised the event, as
source_typesays.GenerationulongFor a map event, a map snapshot with this generation or a later one includes what the event reports. Zero for a runtime event.
MessagestringThe error's text for an event that reports a failure, or empty.
PayloadRuntimeEvent.PayloadValue
Remarks
See mln_runtime_event in the C API reference.
Properties
Generation
For a map event, a map snapshot with this generation or a later one includes what the event reports. Zero for a runtime event.
public ulong Generation { get; init; }
Property Value
Message
The error's text for an event that reports a failure, or empty.
public string Message { get; init; }
Property Value
Payload
public RuntimeEvent.PayloadValue Payload { get; init; }
Property Value
Source
The runtime or map that raised the event, as source_type says.
public ulong Source { get; init; }
Property Value
SourceType
public RuntimeEventSourceType SourceType { get; init; }
Property Value
Type
public RuntimeEventType Type { get; init; }