Gtk.Window.prototype.get_title

function get_title():String {
    // Gjs wrapper for gtk_window_get_title()
}

Retrieves the title of the window. See Gtk.set_title.

Returns

the title of the window, or null if none has been set explicitely. The returned string is owned by the widget and must not be modified or freed.