Package-level declarations

Types

Link copied to clipboard
typealias AssetKey = String
Link copied to clipboard
sealed external interface GetAssetAsBlobOptions

Functions

Link copied to clipboard
external fun getAsset(key: AssetKey): ArrayBuffer

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.

external fun getAsset(key: AssetKey, encoding: String): String
Link copied to clipboard
external fun getAssetAsBlob(key: AssetKey, options: GetAssetAsBlobOptions = definedExternally): Blob

Similar to sea.getAsset(), but returns the result in a Blob. An error is thrown when no matching asset can be found.

Link copied to clipboard

This method can be used to retrieve an array of all the keys of assets embedded into the single-executable application. An error is thrown when not running inside a single-executable application.

Link copied to clipboard
external fun getRawAsset(key: AssetKey): ArrayBuffer

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.

Link copied to clipboard
external fun isSea(): Boolean