Class ClientPeerAddEvent

All Implemented Interfaces:
Cancellable

public class ClientPeerAddEvent extends CancellableClientEvent
This event is called whenever a peer is being added to the client, and can be cancelled to prevent the peer from being added. This is useful to set up single-sided voice connections, without having to implement a filter.
  • Constructor Details

    • ClientPeerAddEvent

      public ClientPeerAddEvent(Client client, Client peer, VoicePeerOptions options)
      Create a new client event
      Parameters:
      client - the client that this event is about
      peer - the peer that was added
      options - the options that were used to add the peer
  • Method Details