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:

    Parameters

    • Rest ...args: []

    Returns LensSource[]

    Example

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

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

Properties

Properties

token: "lensSources"
dependencies: []

Generated using TypeDoc