Skip to main content

Base64.encodeTextureAsync

Function

Encode a texture according to Base64 encoding algorithm, asynchronously.

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

encodeTextureAsync(texture, onSuccess, onFailure, compressionQuality, encodingType): void

Encode a texture according to Base64 encoding algorithm, asynchronously.

Parameters

ParameterType
textureTexture
onSuccess(encodedTexture) => void
onFailure() => void
compressionQualityCompressionQuality
encodingTypeEncodingType

Returns

void