Interface DittoTransportConditionChangedCallback


public interface DittoTransportConditionChangedCallback

Callback interface for monitoring transport condition changes.

Implement this interface to be notified when the operational condition of a Ditto transport changes, such as when a transport becomes available or unavailable.

See Also:
  • Method Details

    • onTransportConditionDidChange

      void onTransportConditionDidChange(@NonNull DittoTransportCondition condition, @NonNull DittoConditionSource subsystem)

      Called when a transport's operational condition changes.

      This method is invoked whenever a transport's condition changes, allowing you to respond to connectivity issues or status updates.

      Parameters:
      condition - the new DittoTransportCondition of the transport.
      subsystem - the DittoConditionSource identifying which transport subsystem changed.