Gck.Enumerator.prototype.next_n
function next_n(max_objects: Number(gint), cancellable: Gio.Cancellable): Array(Gck.Object) { // Gjs wrapper for gck_enumerator_next_n() }
Get the next set of objects from the enumerator. The maximum number of objects can be specified with max_objects. If -1 is specified, then all the remaining objects will be returned.
null is also returned if the function fails. Use the @error to determine whether a failure occurred or not.
- max_objects
The maximum amount of objects to enumerate
- cancellable
A Gio.Cancellable or null
- Returns
A list of objects, which should be freed using Gck.list_unref_free.