connectClosed

fun connectClosed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (remotePeerVanished: Boolean, <Error class: unknown class>?) -> Unit): <Error class: unknown class>

Emitted when the connection is closed.

The cause of this event can be

  • If g_dbus_connection_close() is called. In this case

Since

2.26

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: remotePeerVanished true if @connection is closed because the remote peer closed its end of the connection; error a #GError with more details about the event or null