gio.simple_permission

Module for [SimplePermission] class

Types 3

gio.simple_permission.SimplePermission is a trivial implementation of gio.permission.Permission that represents a permission that is either always or never allowed. The value is given at construction and doesn’t change.

Calling gio.permission.Permission.acquire or gio.permission.Permission.release on a gio.simple_permission.SimplePermission will result in errors.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
SimplePermission self() nothrowReturns `this`, for use in `with` statements.
SimplePermissionGidBuilder builder() static nothrowGet builder for [gio.simple_permission.SimplePermission] Returns: New builder object
Constructors
this(void * ptr, Flag!"Take" take)
this(bool allowed)Creates a new #GPermission instance that represents an action that is either always or never allowed.