Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Online/Experimental/OnlineServicesEOS/Source/Public/OnlineServicesEOSTypes.h |
Include |
#include "OnlineServicesEOSTypes.h" |
namespace UE
{
namespace Online
{
template<typename ComponentHandlerClass, typename EOSHandle, typename EOSNotfyRegisterFunction, typename EOSNotfyUnregisterFunction, typename ComponentHandlerFunction>
EOSEventRegistrationPtr UE::Online::EOS_RegisterComponentEventHandler
(
ComponentHandlerClass * HandlerClass,
EOSHandle ClientHandle,
int32_t ApiVersion,
EOSNotfyRegisterFunction NotfyRegisterFunction,
EOSNotfyUnregisterFunction NotfyUnregisterFunction,
ComponentHandlerFunction HandlerFunction
)
}
}
EOS event registration utility for binding an EOS notifier registration to a RAII object which handles unregistering when it exits scope. Intended to be used from a TOnlineComponent class.
Example: EOSEventRegistrationPtr OnLobbyUpdatedEOSEventRegistration = EOS_RegisterComponentEventHandler( this, LobbyHandle, EOS_LOBBY_ADDNOTIFYLOBBYUPDATERECEIVED_API_LATEST, &EOS_Lobby_AddNotifyLobbyUpdateReceived, &EOS_Lobby_RemoveNotifyLobbyUpdateReceived, &FLobbiesEOS::HandleLobbyUpdated);