GLib.Variant.new_handle

function new_handle(value: Number(gint32)): GLib.Variant {
    // Gjs wrapper for g_variant_new_handle()
}
  

Creates a new handle GLib.Variant instance.

By convention, handles are indexes into an array of file descriptors that are sent alongside a D-Bus message. If you're not interacting with D-Bus, you probably don't need them.

Since 2.24

value

a #gint32 value

Returns

a floating reference to a new handle GLib.Variant instance