@snap/camera-kit
Version:
Camera Kit Web
19 lines (11 loc) • 695 B
Markdown
[**CameraKit Web SDK v1.13.0**](../README.md)
***
[](../globals.md) / AssetTiming
> **AssetTiming**: `"required"` \| `"onDemand"`
Lens assets are included in a manifest, and each will indicate when that asset will be used by the lens.
Assets can have the following timing values:
- `required`: the lens will definitely request this asset immediately when the lens is applied.
- `onDemand`: the lens may request this asset at some time while the lens is applied.
Depending on the use-case, an application may want to cache both required and onDemand assets for
a particular lens, or may decide to only cache required assets (or cache no assets).