Table of Contents

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

Type RuntimeEventType
SourceType RuntimeEventSourceType
Source ulong

The runtime or map that raised the event, as source_type says.

Generation ulong

For a map event, a map snapshot with this generation or a later one includes what the event reports. Zero for a runtime event.

Message string

The error's text for an event that reports a failure, or empty.

Payload RuntimeEvent.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

ulong

Message

The error's text for an event that reports a failure, or empty.

public string Message { get; init; }

Property Value

string

Payload

public RuntimeEvent.PayloadValue Payload { get; init; }

Property Value

RuntimeEvent.PayloadValue

Source

The runtime or map that raised the event, as source_type says.

public ulong Source { get; init; }

Property Value

ulong

SourceType

public RuntimeEventSourceType SourceType { get; init; }

Property Value

RuntimeEventSourceType

Type

public RuntimeEventType Type { get; init; }

Property Value

RuntimeEventType