Class DBusAuthObserver
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class DBusAuthObserver : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
DBusAuthObserver
- Implements
- Inherited Members
Constructors
DBusAuthObserver(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 DBusAuthObserver(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
DBusAuthObserver(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DBusAuthObserver(CreationData data)
Parameters
dataCreationData
DBusAuthObserver(DBusAuthObserverHandle)
protected DBusAuthObserver(DBusAuthObserverHandle handle)
Parameters
handleDBusAuthObserverHandle
Fields
AllowMechanismSignal
Signal Descriptor for OnAllowMechanism.
public static readonly ReturningSignal<DBusAuthObserver, DBusAuthObserver.AllowMechanismSignalArgs, bool> AllowMechanismSignal
Field Value
AuthorizeAuthenticatedPeerSignal
Signal Descriptor for OnAuthorizeAuthenticatedPeer.
public static readonly ReturningSignal<DBusAuthObserver, DBusAuthObserver.AuthorizeAuthenticatedPeerSignalArgs, bool> AuthorizeAuthenticatedPeerSignal
Field Value
Methods
AllowMechanism(string)
[Version("2.34")]
public bool AllowMechanism(string mechanism)
Parameters
mechanismstring
Returns
AuthorizeAuthenticatedPeer(IOStream, Credentials?)
[Version("2.26")]
public bool AuthorizeAuthenticatedPeer(IOStream stream, Credentials? credentials)
Parameters
streamIOStreamcredentialsCredentials
Returns
GetGType()
public static Type GetGType()
Returns
New()
[Version("2.26")]
public static DBusAuthObserver New()
Returns
NewFromPointer(nint, bool)
Creates a new managed DBusAuthObserver instance for a given pointer.
public static DBusAuthObserver NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new DBusAuthObserver and sets the properties specified by the construct arguments.
public static DBusAuthObserver NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnAllowMechanism
public event ReturningSignalHandler<DBusAuthObserver, DBusAuthObserver.AllowMechanismSignalArgs, bool> OnAllowMechanism
Event Type
OnAuthorizeAuthenticatedPeer
public event ReturningSignalHandler<DBusAuthObserver, DBusAuthObserver.AuthorizeAuthenticatedPeerSignalArgs, bool> OnAuthorizeAuthenticatedPeer