Table of Contents

Class Permission

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class Permission
Inheritance
Permission
Inherited Members

Methods

Acquire(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_permission_acquire. Version: 2.26

[Version("2.26")]
public static extern bool Acquire(IntPtr permission, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

AcquireAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_permission_acquire_async. Version: 2.26

[Version("2.26")]
public static extern void AcquireAsync(IntPtr permission, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

AcquireFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_permission_acquire_finish. Version: 2.26

[Version("2.26")]
public static extern bool AcquireFinish(IntPtr permission, IntPtr result, out ErrorOwnedHandle error)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetAllowed(IntPtr)

Calls native method g_permission_get_allowed. Version: 2.26

[Version("2.26")]
public static extern bool GetAllowed(IntPtr permission)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetCanAcquire(IntPtr)

Calls native method g_permission_get_can_acquire. Version: 2.26

[Version("2.26")]
public static extern bool GetCanAcquire(IntPtr permission)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetCanRelease(IntPtr)

Calls native method g_permission_get_can_release. Version: 2.26

[Version("2.26")]
public static extern bool GetCanRelease(IntPtr permission)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_permission_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

ImplUpdate(IntPtr, bool, bool, bool)

Calls native method g_permission_impl_update. Version: 2.26

[Version("2.26")]
public static extern void ImplUpdate(IntPtr permission, bool allowed, bool canAcquire, bool canRelease)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

allowed bool

Transfer ownership: None Nullable: False

canAcquire bool

Transfer ownership: None Nullable: False

canRelease bool

Transfer ownership: None Nullable: False

Release(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_permission_release. Version: 2.26

[Version("2.26")]
public static extern bool Release(IntPtr permission, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ReleaseAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_permission_release_async. Version: 2.26

[Version("2.26")]
public static extern void ReleaseAsync(IntPtr permission, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReleaseFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_permission_release_finish. Version: 2.26

[Version("2.26")]
public static extern bool ReleaseFinish(IntPtr permission, IntPtr result, out ErrorOwnedHandle error)

Parameters

permission IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False