Class: Gio::SimplePermission

Inherits:
Permission show all
Defined in:
(unknown)

Overview

GSimplePermission is a trivial implementation of [classGio.Permission] that represents a permission that is either always or never allowed. The value is given at construction and doesn’t change.

Calling [methodGio.Permission.acquire] or [methodGio.Permission.release] on a GSimplePermission will result in errors.

Instance Method Summary collapse

Methods inherited from Permission

#acquire, #acquire_async, #acquire_finish, #allowed, #allowed=, #allowed?, #can_acquire, #can_acquire=, #can_acquire?, #can_release, #can_release=, #can_release?, #impl_update, #release, #release_async, #release_finish

Constructor Details

#initialize(allowed) ⇒ Gio::Permission

Creates a new #GPermission instance that represents an action that is either always or never allowed.

Parameters:

  • allowed (Boolean)

    true if the action is allowed