@snap/camera-kit
Version:
Camera Kit Web
38 lines (23 loc) • 906 B
Markdown
[**CameraKit Web SDK v1.13.0**](../README.md)
***
[](../globals.md) / lensSourcesFactory
> **lensSourcesFactory**(...`args`): [`LensSource`](../interfaces/LensSource.md)[]
By default, no custom [LensSource](../interfaces/LensSource.md) is provided to CameraKit. But to enable certain advanced use-cases,
applications may provide their own [LensSource](../interfaces/LensSource.md).
Perhaps the most convenient way to do this is with ConcatInjectable, as shown here:
...[]
[`LensSource`](../interfaces/LensSource.md)[]
```ts
import { bootstrapCameraKit, lensSourcesFactory, LensSource } from '@snap/camera-kit'
const cameraKit = bootstrapCameraKit(config, (container) => {
return container.provides(ConcatInjectable(
lensSourcesFactory.token,
(): LensSource => { return ... }
))
})
```