ResourceLoader

expect object ResourceLoader

Platform-specific resource loader for accessing schema files

actual object ResourceLoader

iOS implementation of ResourceLoader using NSBundle

actual object ResourceLoader

iOS implementation of ResourceLoader using NSBundle

actual object ResourceLoader

JVM implementation of ResourceLoader using ClassLoader

actual object ResourceLoader

Linux implementation of ResourceLoader

actual object ResourceLoader

iOS implementation of ResourceLoader using NSBundle

actual object ResourceLoader

iOS implementation of ResourceLoader using NSBundle

Functions

Link copied to clipboard
expect fun filesFrom(path: String): List<String>

Lists all files in a resource directory

actual fun filesFrom(path: String): List<String>
actual fun filesFrom(path: String): List<String>
actual fun filesFrom(path: String): List<String>
actual fun filesFrom(path: String): List<String>
actual fun filesFrom(path: String): List<String>
actual fun filesFrom(path: String): List<String>
Link copied to clipboard
expect fun loadResource(path: String): String?

Loads a resource file as a string from the resources directory

actual fun loadResource(path: String): String?
actual fun loadResource(path: String): String?
actual fun loadResource(path: String): String?
actual fun loadResource(path: String): String?
actual fun loadResource(path: String): String?
actual fun loadResource(path: String): String?