[ CCode ( has_construct_function = false , type = "GPermission*" ) ]
public Permission.sync (string action_id, Subject? subject, Cancellable? cancellable = null) throws Error
Creates a Permission instance for the PolicyKit action
action_id.
This is a synchronous failable constructor. See Permission for the asynchronous version.
| action_id |
The PolicyKit action identifier. |
| subject |
A Subject or null for the current process. |
| cancellable |
A Cancellable or null. |
|
A Permission or null if throws is set. |