![]() |
Nakama C++ Client SDK 2.5.1
Client for Nakama Server
|
#include <NRtDefaultClientListener.h>
Public Types | |
using | ConnectCallback = std::function< void()> |
using | DisconnectCallback = std::function< void(const NRtClientDisconnectInfo &info)> |
using | ErrorCallback = std::function< void(const NRtError &)> |
using | ChannelMessageCallback = std::function< void(const NChannelMessage &)> |
using | ChannelPresenceCallback = std::function< void(const NChannelPresenceEvent &)> |
using | MatchmakerMatchedCallback = std::function< void(NMatchmakerMatchedPtr)> |
using | MatchDataCallback = std::function< void(const NMatchData &)> |
using | MatchPresenceCallback = std::function< void(const NMatchPresenceEvent &)> |
using | NotificationsCallback = std::function< void(const NNotificationList &)> |
using | PartyCallback = std::function< void(const NParty &)> |
using | PartyClosedCallback = std::function< void(const NPartyClose &)> |
using | PartyDataCallback = std::function< void(const NPartyData &)> |
using | PartyJoinRequestCallback = std::function< void(const NPartyJoinRequest &)> |
using | PartyLeaderCallback = std::function< void(const NPartyLeader &)> |
using | PartyMatchmakerTicketCallback = std::function< void(const NPartyMatchmakerTicket &)> |
using | PartyPresenceCallback = std::function< void(const NPartyPresenceEvent &)> |
using | StatusPresenceCallback = std::function< void(const NStatusPresenceEvent &)> |
using | StreamPresenceCallback = std::function< void(const NStreamPresenceEvent &)> |
using | StreamDataCallback = std::function< void(const NStreamData &)> |
Protected Member Functions | |
void | onConnect () override |
void | onDisconnect (const NRtClientDisconnectInfo &info) override |
void | onError (const NRtError &error) override |
void | onChannelMessage (const NChannelMessage &message) override |
void | onChannelPresence (const NChannelPresenceEvent &presence) override |
void | onMatchmakerMatched (NMatchmakerMatchedPtr matched) override |
void | onMatchData (const NMatchData &matchData) override |
void | onMatchPresence (const NMatchPresenceEvent &matchPresence) override |
void | onNotifications (const NNotificationList ¬ifications) override |
void | onParty (const NParty &party) override |
void | onPartyClosed (const NPartyClose &partyClosed) override |
void | onPartyData (const NPartyData &partyData) override |
void | onPartyJoinRequest (const NPartyJoinRequest &partyJoinRequest) override |
void | onPartyLeader (const NPartyLeader &partyLeader) override |
void | onPartyMatchmakerTicket (const NPartyMatchmakerTicket &partyMatchmakerTicket) override |
void | onPartyPresence (const NPartyPresenceEvent &partyPresence) override |
void | onStatusPresence (const NStatusPresenceEvent &presence) override |
void | onStreamPresence (const NStreamPresenceEvent &presence) override |
void | onStreamData (const NStreamData &data) override |
A default listener for receiving NRtClientInterface
events. It allows to set callbacks for needed events without creating own class.
using NRtDefaultClientListener::ChannelMessageCallback = std::function<void(const NChannelMessage&)> |
using NRtDefaultClientListener::ChannelPresenceCallback = std::function<void(const NChannelPresenceEvent&)> |
using NRtDefaultClientListener::ConnectCallback = std::function<void()> |
using NRtDefaultClientListener::DisconnectCallback = std::function<void(const NRtClientDisconnectInfo& info)> |
using NRtDefaultClientListener::ErrorCallback = std::function<void(const NRtError&)> |
using NRtDefaultClientListener::MatchDataCallback = std::function<void(const NMatchData&)> |
using NRtDefaultClientListener::MatchmakerMatchedCallback = std::function<void(NMatchmakerMatchedPtr)> |
using NRtDefaultClientListener::MatchPresenceCallback = std::function<void(const NMatchPresenceEvent&)> |
using NRtDefaultClientListener::NotificationsCallback = std::function<void(const NNotificationList&)> |
using NRtDefaultClientListener::PartyCallback = std::function<void(const NParty&)> |
using NRtDefaultClientListener::PartyClosedCallback = std::function<void(const NPartyClose&)> |
using NRtDefaultClientListener::PartyDataCallback = std::function<void(const NPartyData&)> |
using NRtDefaultClientListener::PartyJoinRequestCallback = std::function<void(const NPartyJoinRequest&)> |
using NRtDefaultClientListener::PartyLeaderCallback = std::function<void(const NPartyLeader&)> |
using NRtDefaultClientListener::PartyMatchmakerTicketCallback = std::function<void(const NPartyMatchmakerTicket&)> |
using NRtDefaultClientListener::PartyPresenceCallback = std::function<void(const NPartyPresenceEvent&)> |
using NRtDefaultClientListener::StatusPresenceCallback = std::function<void(const NStatusPresenceEvent&)> |
using NRtDefaultClientListener::StreamDataCallback = std::function<void(const NStreamData&)> |
using NRtDefaultClientListener::StreamPresenceCallback = std::function<void(const NStreamPresenceEvent&)> |
|
inlineoverrideprotectedvirtual |
Called when a new channel message has been received.
message | The NChannelMessage received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when a new channel presence update has been received.
presence | The NChannelPresenceEvent received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client socket has been connected.
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client socket disconnects.
info | The NRtClientDisconnectInfo . |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client receives an error.
error | The NRtError received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when a new match data is received.
matchData | The NMatchData received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when a matchmaking has found a match.
matched | The NMatchmakerMatched received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when a new match presence update is received.
matchPresence | The NMatchPresenceEvent received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client receives new notifications.
notifications | The list of NNotification received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when occur when the current user's invitation request is accepted by the party leader of a closed party.
party | the NParty joined by the user. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when either the user's party closes or the user is removed from the party.
partyClosedEvent | The NPartyClose received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the user receives custom party data.
partyData | The NPartyData received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the user receives a request to join the party.
party | The NPartyJoinRequest received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the user's party leader has changed.
partyLeader | the new NPartyLeader . |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the user receives a new party matchmaker ticket.
ticket | the NPartyMatchmakerTicket received upon entering the matchmaking system. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when a presence event occurs within the party. Received a new presence event in the party.
presenceEvent | the NPNPartyPresenceEvent received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client receives status presence updates.
presence | Updated NStatusPresenceEvent presence. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client receives stream data.
data | Stream NStreamData data received. |
Reimplemented from NRtClientListenerInterface.
|
inlineoverrideprotectedvirtual |
Called when the client receives stream presence updates.
presence | Updated NStreamPresenceEvent presence. |
Reimplemented from NRtClientListenerInterface.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |