Gio.Resource.load
function load(filename: String): Gio.Resource {
// Gjs wrapper for g_resource_load()
}
Loads a binary resource bundle and creates a Gio.Resource representation of it, allowing you to query it for data.
If you want to use this resource in the global resource namespace you need to register it with Gio.resources_register.
Since 2.32
- filename
the path of a filename to load, in the GLib filename encoding
- Returns
a new Gio.Resource, or null on error