Gio.DBusMessage.prototype.set_body

function set_body(body: GLib.Variant): void {
    // Gjs wrapper for g_dbus_message_set_body()
}
  

Sets the body message. As a side-effect the Gio.DBusMessageHeaderField.signature header field is set to the type string of body (or cleared if body is null).

If body is floating, message assumes ownership of body.

Since 2.26

body

Either null or a GLib.Variant that is a tuple.