BundledAssetReader

fun interface BundledAssetReader(source)

Reads a bundled JSON asset by file name. Android serves these from assets/; non-Android targets have no bundled assets and return null, which callers treat as "nothing to seed".

Inheritors

Functions

Link copied to clipboard
inline fun <T> BundledAssetReader.decode(name: String, json: Json): T?

Decodes bundled asset name to T using the shared tolerant json, or null if the asset is absent.

Link copied to clipboard
abstract fun open(name: String): Source?

Opens name (e.g. "device_links.json"), or returns null if the asset is absent.