AbstractModuleAsset class
Common base class for module asset types.
Signature:
export declare class AbstractModuleAsset extends ExternalObject implements IModuleAsset
Extends: ExternalObject
Implements: IModuleAsset
Methods
Method | Modifiers | Description |
---|---|---|
addToOutput(name) | Mark this asset to be available to the Oooh platform after the module has finished running | |
dispose() | Releases any Object URLs that are in memory for the asset. Does not delete the files. |
AbstractModuleAsset.addToOutput() method
Warning: This API is now obsolete.
use AssetManager.addToOutput() instead
Mark this asset to be available to the Oooh platform after the module has finished running
Signature:
addToOutput(name: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The identifier configured in the module setup |
Returns:
void
AbstractModuleAsset.dispose() method
Releases any Object URLs that are in memory for the asset. Does not delete the files.
Signature:
dispose(): void;
Returns:
void
Remarks
Currently only applicable if you have called AudioAsset.getAudioUrl() or ImageAsset.getImageUrl() on assets picked by the user from their device. If the asset is not holding an Object URL, does nothing.
Updated over 1 year ago