@snap/camera-kit
Version:
Camera Kit Web
50 lines (28 loc) • 1.29 kB
Markdown
[CameraKit Web SDK - v0.22.0](../README.md) / [Exports](../modules.md) / LoadAssetRequest
# Interface: LoadAssetRequest
Represents a request for loading assets through [AssetLoader](../modules.md#assetloader). This object specifies the asset to be loaded,
optionally defines the lens context, includes an asset manifest if available, and indicates the priority of the load.
## Table of contents
### Properties
- [assetDescriptor](LoadAssetRequest.md#assetdescriptor)
- [lens](LoadAssetRequest.md#lens)
- [assetManifest](LoadAssetRequest.md#assetmanifest)
- [lowPriority](LoadAssetRequest.md#lowpriority)
## Properties
### assetDescriptor
• **assetDescriptor**: `AssetDescriptor`
Describes the asset to be loaded.
___
### lens
• **lens**: `undefined` \| [`Lens`](Lens.md)
Specifies the lens context for the asset load, if applicable.
___
### assetManifest
• **assetManifest**: `LensAssetManifestItem`[]
Lens asset manifest.
___
### lowPriority
• **lowPriority**: `boolean`
Indicates whether the asset fetch should be treated with lower priority compared to other
network requests on the page. When set to true, this request may be deferred in favor of higher-priority
traffic, potentially improving overall page responsiveness and load times for critical assets.