API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceLoaderOptions

@codexo/exojs / assets / stable

Construction options for Loader. `basePath` is prepended to relative asset paths at fetch time. `concurrency` caps the number of simultaneous background-queue fetches (default `6`). `cache` configures caching, and is optional: with nothing passed, every acquisition goes straight to the network and no cache machinery runs at all. One or more CacheStore instances configure a single cache-first route over them; an AssetCache configures routes and policies explicitly. `connectivity` is what makes an acquisition's network permission known to the cache and to a streaming asset type. Application supplies its own, so this is only for a loader built by hand.

5
props
0
methods
0
events
Import
import { LoaderOptions } from '@codexo/exojs'

Construction options for Loader.

`basePath` is prepended to relative asset paths at fetch time. `concurrency` caps the number of simultaneous background-queue fetches (default `6`).

`cache` configures caching, and is optional: with nothing passed, every acquisition goes straight to the network and no cache machinery runs at all. One or more CacheStore instances configure a single cache-first route over them; an AssetCache configures routes and policies explicitly.

`connectivity` is what makes an acquisition's network permission known to the cache and to a streaming asset type. Application supplies its own, so this is only for a loader built by hand.

Properties5
basePath?: string
concurrency?: number
Whether acquisitions may reach the network, and what the host reports. The loader never subscribes to it and never changes it: it reads a snapshot when an acquisition starts, and passes that value on. Omitted, every acquisition runs unrestricted.
fetchOptions?: RequestInit
Source