connectGAuthorizeMethod

fun connectGAuthorizeMethod(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (invocation: DBusMethodInvocation) -> Boolean): <Error class: unknown class>

Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.

Note that this signal is emitted in a thread dedicated to handling the method call so handlers are allowed to perform blocking IO. This means that it is appropriate to call e.g. polkit_authority_check_authorization_sync() with the POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION flag set.

If false is returned then no further handlers are run and the signal handler must take a reference to @invocation and finish handling the call (e.g. return an error via g_dbus_method_invocation_return_error()).

Otherwise, if true is returned, signal emission continues. If no handlers return false, then the method is dispatched. If

Since

2.30

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: invocation A #GDBusMethodInvocation.. Returns true if the call is authorized, false otherwise.