Skip to main content

Utf8

Namespace

Namespace 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.

Functions

FunctionDescription
decodeDecodes a utf-8 Uint8Array to a utf-16 string
encodeEncodes a utf-16 string as a utf-8 Uint8Array