PixbufAnimation.newFromStreamAsync

void newFromStreamAsync(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Creates a new animation by asynchronously loading an image from an input stream.

For more details see [gdkpixbuf.pixbuf.Pixbuf.newFromStream], which is the synchronous version of this function.

When the operation is finished, callback will be called in the main thread. You can then call [gdkpixbuf.pixbuf_animation.PixbufAnimation.newFromStreamFinish] to get the result of the operation.

Parameters

streama #GInputStream from which to load the animation
cancellableoptional #GCancellable object
callbacka [gio.types.AsyncReadyCallback] to call when the pixbuf is loaded