Base64
NamespaceNamespace in the Lens Scripting API.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Functions
| Function | Description |
|---|---|
| decode | Decode a Base64 string to a byte array (Uint8Array). |
| decodeTextureAsync | Decode a texture from Base64, asynchronously. |
| encode | Encode a byte array (Uint8Array) to Base64 string. |
| encodeString | Encode a string to Base64 format. |
| encodeTextureAsync | Encode a texture according to Base64 encoding algorithm, asynchronously. |