connectNewConnection
fun connectNewConnection(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (connection: DBusConnection) -> Boolean): <Error class: unknown class>
Emitted when a new authenticated connection has been made. Use g_dbus_connection_get_peer_credentials() to figure out what identity (if any), was authenticated.
If you want to accept the connection, take a reference to the
Since
2.26
Parameters
connectFlags
A combination of ConnectFlags
handler
the Callback to connect. Params: connection
A #GDBusConnection for the new connection.. Returns true to claim @connection, false to let other handlers run.