newFromStreamAsync

fun newFromStreamAsync(stream: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)

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

For more details see gdk_pixbuf_new_from_stream(), 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 gdk_pixbuf_animation_new_from_stream_finish() to get the result of the operation.

Since

2.28

Parameters

stream

a #GInputStream from which to load the animation

cancellable

optional #GCancellable object

callback

a GAsyncReadyCallback to call when the pixbuf is loaded