PixbufAnimation.from_stream_async


Description:

[ CCode ( cname = "gdk_pixbuf_animation_new_from_stream_async" , has_construct_function = false ) ]
[ Version ( since = "2.28" ) ]
public async PixbufAnimation.from_stream_async (InputStream stream, Cancellable? cancellable = null) throws Error

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

For more details see Pixbuf.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 PixbufAnimation.from_stream_async.end to get the result of the operation.

Parameters:

stream

a InputStream from which to load the animation

cancellable

optional Cancellable object

callback

a `GAsyncReadyCallback` to call when the pixbuf is loaded

user_data

the data to pass to the callback function