Type alias LensAbortError

LensAbortError: NamedError<"LensAbortError">

This error occurs when a session becomes inoperable.

It's always a good idea to handle this error and update the user experience accordingly. For example, you could show a message to a user.

cameraKitSession.events.addEventListener('error', ({ detail }) => {
if (detail.error.name === 'LensAbortError') {
console.log(`Camera Kit encountered an unrecoverable error and became inoperable. Please refresh the page.`)
}
})

Generated using TypeDoc