Gck.Enumerator.prototype.set_object_type
function set_object_type(object_type: GObject.Type, attr_types: Array(Number(gulong))): void { // Gjs wrapper for gck_enumerator_set_object_type_full() }
Set the type of objects to be created by this enumerator. The type must always be either Gck.Object or derived from it.
If attr_types and attr_count are non-NULL and non-zero respectively, then the Gck.ObjectCache interface is expected to be implemented on the derived class, then the enumerator will retrieve attributes for each object.
- object_type
the type of objects to create
- attr_types
types of attributes to retrieve for objects