Permission
Class
constructor
parent_
class
reserved
name
acquire
acquire_
async
acquire_
finish
release
release_
async
release_
finish
GJS API Reference
Gio-2.0
Gio
PermissionClass
Class PermissionClass
Hierarchy
PermissionClass
Index
Constructors
constructor
Properties
parent_
class
reserved
name
Methods
acquire
acquire_
async
acquire_
finish
release
release_
async
release_
finish
Constructors
constructor
new
Permission
Class
(
)
:
PermissionClass
Returns
PermissionClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
reserved
reserved
:
object
[]
Static
name
name
:
string
Methods
acquire
acquire
(
permission
:
Gio
.
Permission
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
permission:
Gio
.
Permission
cancellable:
Gio
.
Cancellable
Returns
boolean
acquire_
async
acquire_
async
(
permission
:
Gio
.
Permission
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
permission:
Gio
.
Permission
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
acquire_
finish
acquire_
finish
(
permission
:
Gio
.
Permission
, result
:
AsyncResult
)
:
boolean
Parameters
permission:
Gio
.
Permission
result:
AsyncResult
Returns
boolean
release
release
(
permission
:
Gio
.
Permission
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
permission:
Gio
.
Permission
cancellable:
Gio
.
Cancellable
Returns
boolean
release_
async
release_
async
(
permission
:
Gio
.
Permission
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
permission:
Gio
.
Permission
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
release_
finish
release_
finish
(
permission
:
Gio
.
Permission
, result
:
AsyncResult
)
:
boolean
Parameters
permission:
Gio
.
Permission
result:
AsyncResult
Returns
boolean
Permission
Class
constructor
parent_
class
reserved
name
acquire
acquire_
async
acquire_
finish
release
release_
async
release_
finish
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjd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