Interface CameraKitSourceSubscriber

When creating a CameraKitSource, passing a CameraKitSourceSubscriber allows logic to implemented which will run whenever that source is attached/detached from a CameraKitSession.

Hierarchy

  • CameraKitSourceSubscriber

Properties

Properties

onAttach?: ((source, lensCore, reportError) => void | Promise<void>)

Type declaration

    • (source, lensCore, reportError): void | Promise<void>
    • Parameters

      • source: CameraKitSource
      • lensCore: LensCore
      • reportError: ((error) => void)
          • (error): void
          • Parameters

            • error: Error

            Returns void

      Returns void | Promise<void>

onDetach?: ((reportError) => void | Promise<void>)

Type declaration

    • (reportError): void | Promise<void>
    • Parameters

      • reportError: ((error) => void)
          • (error): void
          • Parameters

            • error: Error

            Returns void

      Returns void | Promise<void>

Generated using TypeDoc