Gtk.Image.prototype.get_animation

function get_animation():GdkPixbuf.PixbufAnimation {
    // Gjs wrapper for gtk_image_get_animation()
}

Gets the GdkPixbuf.PixbufAnimation being displayed by the Gtk.Image. The storage type of the image must be Gtk.ImageType.empty or Gtk.ImageType.animation (see Gtk.get_storage_type). The caller of this function does not own a reference to the returned animation.

Returns

the displayed animation, or null if the image is empty