UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IXmppPresence Class Referenceabstract

#include <XmppPresence.h>

Public Member Functions

virtual ~IXmppPresence ()
 
virtual bool UpdatePresence (const FXmppUserPresence &Presence)=0
 
virtual const FXmppUserPresenceGetPresence () const =0
 
virtual bool QueryPresence (const FString &UserId)=0
 
virtual void GetRosterMembers (TArray< FXmppUserJid > &OutMembers)=0
 
virtual TArray< TSharedPtr< FXmppUserPresence > > GetRosterPresence (const FString &UserId)=0
 
 DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnXmppPresenceReceived, const TSharedRef< IXmppConnection > &, const FXmppUserJid &, const TSharedRef< FXmppUserPresence > &)
 
virtual FOnXmppPresenceReceivedOnReceivePresence ()=0
 

Detailed Description

Interface for updating presence for current user and for obtaining updates of roster members

Constructor & Destructor Documentation

◆ ~IXmppPresence()

virtual IXmppPresence::~IXmppPresence ( )
inlinevirtual

destructor

Member Function Documentation

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams()

IXmppPresence::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FOnXmppPresenceReceived  ,
const TSharedRef< IXmppConnection > &  ,
const FXmppUserJid ,
const TSharedRef< FXmppUserPresence > &   
)

Delegate callback for when new presence data is received for a given user. Can also obtain cached data via GetRosterPresence()

Parameters
Connectionthe xmpp connection this message was received on
UserIdroster member or current user that updated
Presencepresence data that was received

◆ GetPresence()

virtual const FXmppUserPresence & IXmppPresence::GetPresence ( ) const
pure virtual

Get the last cached presence for the current user

Returns
Presence status data

◆ GetRosterMembers()

virtual void IXmppPresence::GetRosterMembers ( TArray< FXmppUserJid > &  OutMembers)
pure virtual

Obtain a list of current roster member id

Parameters
OutMembers[out] members to update

◆ GetRosterPresence()

virtual TArray< TSharedPtr< FXmppUserPresence > > IXmppPresence::GetRosterPresence ( const FString &  UserId)
pure virtual

Obtain presence info for a given roster member id

Returns
cached presence or NULL if not found

◆ OnReceivePresence()

virtual FOnXmppPresenceReceived & IXmppPresence::OnReceivePresence ( )
pure virtual
Returns
presence received delegate

◆ QueryPresence()

virtual bool IXmppPresence::QueryPresence ( const FString &  UserId)
pure virtual

Kick off a query for presence data for a given user

Returns
true if successfully sent

◆ UpdatePresence()

virtual bool IXmppPresence::UpdatePresence ( const FXmppUserPresence Presence)
pure virtual

Send a presence update to Xmpp service for current user logged in with the connection. Also updates cached copy of presence data

Parameters
Presencestatus data to update
Returns
true if successfully sent

The documentation for this class was generated from the following file: