Gio.Initable.newv

function newv(object_type: GObject.Type, parameters: Array(GObject.Parameter), cancellable: Gio.Cancellable): GObject.Object {
    // Gjs wrapper for g_initable_newv()
}
  

Helper function for constructing Gio.Initable object. This is similar to GObject.Object.new but also initializes the object and returns null, setting an error on failure.

Since 2.22

object_type

a GLib.Type supporting Gio.Initable.

parameters

the parameters to use to construct the object

cancellable

optional Gio.Cancellable object, null to ignore.

Returns

a newly allocated GObject.Object, or null on error