Function lensSourcesFactory

By default, no custom LensSource is provided to CameraKit. But to enable certain advanced use-cases, applications may provide their own LensSource.

Perhaps the most convenient way to do this is with ConcatInjectable, as shown here:

import { bootstrapCameraKit, lensSourcesFactory, LensSource } from '@snap/camera-kit'

const cameraKit = bootstrapCameraKit(config, (container) => {
return container.provides(ConcatInjectable(
lensSourcesFactory.token,
(): LensSource => { return ... }
))
})
MMNEPVFCICPMFPCPTTAAATR