Skip to main content

input

Function

Function in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

TypeScript only

Call Signature

input(typeOverride?, defaultInitializerOverride?): (target, context) => void

Parameters

ParameterType
typeOverride?string
defaultInitializerOverride?string

Returns

(target, context) => void

Call Signature

input(target, context): void

Parameters

ParameterType
targetundefined
contextClassFieldDecoratorContext

Returns

void