API reference

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

C

classAbstractAssetFactory

@codexo/exojs / resources / stable

Shared base class for all built-in AssetFactory implementations. Manages a pool of object URLs created during asset loading so that they can be revoked in bulk when the factory is destroyed, preventing memory leaks. Concrete subclasses must implement process and create; they may call createObjectUrl instead of `URL.createObjectURL` directly so that the URL is automatically tracked and cleaned up.

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

Shared base class for all built-in AssetFactory implementations.

Manages a pool of object URLs created during asset loading so that they can be revoked in bulk when the factory is destroyed, preventing memory leaks. Concrete subclasses must implement process and create; they may call createObjectUrl instead of `URL.createObjectURL` directly so that the URL is automatically tracked and cleaned up.

Constructors 1
new(): AbstractAssetFactory<T>
Methods 5
create(source: unknown, options?: unknown): Promise<T>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<unknown>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: string
Source