getAsset

external fun getAsset(key: AssetKey): ArrayBuffer(source)

This method can be used to retrieve the assets configured to be bundled into the single-executable application at build time. An error is thrown when no matching asset can be found.

Since

v20.12.0


external fun getAsset(key: AssetKey, encoding: String): String(source)