Struct RuntimeOptions
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Options for RuntimeHandle.Create().
public readonly record struct RuntimeOptions : IEquatable<RuntimeOptions>
- Implements
- Inherited Members
Remarks
See mln_runtime_options in the C API reference.
Constructors
RuntimeOptions()
public RuntimeOptions()
RuntimeOptions(string, string)
Options for RuntimeHandle.Create().
public RuntimeOptions(string AssetPath, string CachePath)
Parameters
AssetPathstringThe directory that
asset://URLs load from. Empty uses the working directory, or the app's assets on Android.CachePathstringThe path of the cache database file, which holds the ambient cache and offline regions. Its directory must be writable. Empty keeps the cache in memory.
Remarks
See mln_runtime_options in the C API reference.
Properties
AssetPath
The directory that asset:// URLs load from. Empty uses the working
directory, or the app's assets on Android.
public string AssetPath { get; init; }
Property Value
CachePath
The path of the cache database file, which holds the ambient cache and offline regions. Its directory must be writable. Empty keeps the cache in memory.
public string CachePath { get; init; }