Gtk.StatusIcon.prototype.get_visible

function get_visible():Boolean {
    // Gjs wrapper for gtk_status_icon_get_visible()
}

Returns whether the status icon is visible or not. Note that being visible does not guarantee that the user can actually see the icon, see also Gtk.is_embedded.

Since 2.10

Returns

true if the status icon is visible