Schnittstelle DBusConnection.OnClosed

Umschließende Klasse:
DBusConnection
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface DBusConnection.OnClosed
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onClosed(boolean remote_peer_vanished, Error error)
    Emitted when the connection is closed.
  • Methodendetails

    • onClosed

      void onClosed(boolean remote_peer_vanished, @Nullable Error error)
      Emitted when the connection is closed.

      The cause of this event can be

      - If g_dbus_connection_close() is called. In this case
      @remote_peer_vanished is set to %FALSE and @error is %NULL.

      - If the remote peer closes the connection. In this case
      @remote_peer_vanished is set to %TRUE and @error is set.

      - If the remote peer sends invalid or malformed data. In this
      case @remote_peer_vanished is set to %FALSE and @error is set.

      Upon receiving this signal, you should give up your reference to
      @connection. You are guaranteed that this signal is emitted only
      once.
      Parameter:
      remote_peer_vanished - %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