Class Permission
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class Permission : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Permission
- Implements
- Derived
- Inherited Members
Constructors
Permission(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Permission(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Permission(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Permission(CreationData data)
Parameters
dataCreationData
Permission(PermissionHandle)
protected Permission(PermissionHandle handle)
Parameters
handlePermissionHandle
Fields
AllowedPropertyDefinition
public static readonly Property<bool, Permission> AllowedPropertyDefinition
Field Value
CanAcquirePropertyDefinition
public static readonly Property<bool, Permission> CanAcquirePropertyDefinition
Field Value
CanReleasePropertyDefinition
public static readonly Property<bool, Permission> CanReleasePropertyDefinition
Field Value
Properties
Allowed
public bool Allowed { get; }
Property Value
CanAcquire
public bool CanAcquire { get; }
Property Value
CanRelease
public bool CanRelease { get; }
Property Value
Methods
Acquire(Cancellable?)
[Version("2.26")]
public bool Acquire(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
AcquireFinish(AsyncResult)
[Version("2.26")]
public bool AcquireFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetAllowed()
[Version("2.26")]
public bool GetAllowed()
Returns
GetCanAcquire()
[Version("2.26")]
public bool GetCanAcquire()
Returns
GetCanRelease()
[Version("2.26")]
public bool GetCanRelease()
Returns
GetGType()
public static Type GetGType()
Returns
ImplUpdate(bool, bool, bool)
[Version("2.26")]
public void ImplUpdate(bool allowed, bool canAcquire, bool canRelease)
Parameters
NewFromPointer(nint, bool)
Creates a new managed Permission instance for a given pointer.
public static Permission NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Permission and sets the properties specified by the construct arguments.
public static Permission NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Release(Cancellable?)
[Version("2.26")]
public bool Release(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReleaseFinish(AsyncResult)
[Version("2.26")]
public bool ReleaseFinish(AsyncResult result)
Parameters
resultAsyncResult