spriteSheetLoader

fun spriteSheetLoader(spriteSheetLoader: SpriteSheetLoader)

Sets the SpriteSheetLoader to be used to load a Bitmap from a SpriteSheet.

Example

val srgAssetLoader = SRGAssetLoader(context) {
spriteSheetLoader { spriteSheet, onComplete ->
onComplete(loadBitmap(spriteSheet.url))
}
}

Parameters

spriteSheetLoader

The SpriteSheetLoader instance to use.