@Deprecated public interface PeerConnectionEventListener extends PeerConnectedEventListener, PeerDiscoveredEventListener, PeerDisconnectedEventListener
Implementors can listen to events like peer discovery, connect or disconnects.
|Modifier and Type||Method and Description|
Called when a peer is disconnected.
void onPeerDisconnected(Peer peer, int peerCount)
PeerGroupand the group is in the process of shutting down. If this listener is registered to a
Peerinstead of a
PeerGroup, peerCount will always be 0. This handler can be called without a corresponding invocation of onPeerConnected if the initial connection is never successful.
Copyright © 2018. All rights reserved.