Interface P2PService.ConnectionListener

Enclosing interface:
P2PService
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface P2PService.ConnectionListener
Consumer of network connection events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a new peer connection is established.
  • Method Details

    • onConnect

      void onConnect(PeerConnection connection)
      Called when a new peer connection is established.
      Parameters:
      connection - the newly established peer connection