remember Image
Decode an image from the given bytes on the provided RiveWorker. The decoded image can only be used on the same RiveWorker it was created on.
This function is intended for use with images that may want to be registered multiple times with ImageAsset.register. If you want to decode and register in one step, use rememberRegisteredImage instead.
The image will be deleted and its RiveWorker reference released when the composable leaves the composition.
Return
The Result of the image decoding, which can be either loading, error, or success with the ImageHandle.
Parameters
rive Worker
The Rive worker that owns and performs operations on this image.
bytes
The byte array containing the image data to decode.