Gio.SimplePermission.new
function new(allowed: Boolean): Gio.Permission {
// Gjs wrapper for g_simple_permission_new()
}
Creates a new Gio.Permission instance that represents an action that is either always or never allowed.
Since 2.26
- allowed
true if the action is allowed
- Returns
the Gio.SimplePermission, as a Gio.Permission