BrushFamilyDecodeCallback


@ExperimentalInkCustomBrushApi
public fun interface BrushFamilyDecodeCallback


Summary

Public methods

abstract @NonNull String
onDecodeTexture(@NonNull String clientTextureId, Bitmap bitmap)

Called for each texture used by a BrushFamily when that BrushFamily is decoded.

Public methods

onDecodeTexture

Added in 1.0.0-alpha04
abstract @NonNull String onDecodeTexture(@NonNull String clientTextureId, Bitmap bitmap)

Called for each texture used by a BrushFamily when that BrushFamily is decoded. In the implementation of this method, the returned String should be mapped to bitmap (or a client- provided replacement) in the supporting TextureBitmapStore.

Parameters
@NonNull String clientTextureId

the ID for this texture in the serialized form of the BrushFamily.

Bitmap bitmap

the bitmap corresponding to clientTextureId in the serialized form of the BrushFamily. Null indicates that the serialized form did not store a bitmap for clientTextureId.