Base64.encodeTextureAsync
FunctionEncode a texture according to Base64 encoding algorithm, asynchronously.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
encodeTextureAsync(
texture,onSuccess,onFailure,compressionQuality,encodingType):void
Encode a texture according to Base64 encoding algorithm, asynchronously.
Parameters
| Parameter | Type |
|---|---|
texture | Texture |
onSuccess | (encodedTexture) => void |
onFailure | () => void |
compressionQuality | CompressionQuality |
encodingType | EncodingType |
Returns
void