Gio.MenuLinkIter.prototype.next

function next(): Boolean {
    // Gjs wrapper for g_menu_link_iter_next()
}
  

Attempts to advance the iterator to the next (possibly first) link.

true is returned on success, or false if there are no more links.

You must call this function when you first acquire the iterator to advance it to the first link (and determine if the first link exists at all).

Since 2.32

Returns

true on success, or false when there are no more links