Valhalla Config Manager
class ValhallaConfigManager(context: Context, file: ValhallaFile = ValhallaFile(context, "valhalla.json"), moshi: Moshi = Moshi.Builder().add(KotlinJsonAdapterFactory()).build())
Manages the Valhalla configuration file within the Android application's available filesystem.
Parameters
context
The Android context used for file system access.
file
The file handler for the valhalla.json configuration file. Defaults to "valhalla.json" in app storage.
moshi
JSON serialization adapter. Defaults to a Moshi instance with Kotlin reflection support.
See also
Valhalla Config
Constructors
Link copied to clipboard
constructor(context: Context, file: ValhallaFile = ValhallaFile(context, "valhalla.json"), moshi: Moshi = Moshi.Builder().add(KotlinJsonAdapterFactory()).build())