ResourceLoader

actual object ResourceLoader(source)

Android implementation of ResourceLoader. Loads resources from the classpath using the class loader.

expect object ResourceLoader(source)

Platform-specific loader for embedded resources.

actual object ResourceLoader(source)

iOS implementation of ResourceLoader. Loads resources from the main application bundle.

Functions

Link copied to clipboard
actual fun loadResource(name: String): ByteArray
expect fun loadResource(name: String): ByteArray

Load a named resource as a byte array.

actual fun loadResource(name: String): ByteArray