Navigation
API > API/Plugins > API/Plugins/OnlineServicesEOSGS > API/Plugins/OnlineServicesEOSGS/Online
References
| Module | OnlineServicesEOSGS |
| Header | /Engine/Plugins/Online/OnlineServicesEOSGS/Source/Public/Online/OnlineServicesEOSGSTypes.h |
| Include | #include "Online/OnlineServicesEOSGSTypes.h" |
namespace UE
{
namespace Online
{
template<typename ComponentHandlerClass, typename EOSHandle, typename EOSNotfyRegisterFunction, typename EOSNotfyUnregisterFunction, typename ComponentHandlerFunction>
EOSEventRegistrationPtr UE&58;&58;Online&58;&58;EOS_RegisterComponentEventHandler
&40;
ComponentHandlerClass &42; HandlerClass,
EOSHandle ClientHandle,
int32_t ApiVersion,
EOSNotfyRegisterFunction NotfyRegisterFunction,
EOSNotfyUnregisterFunction NotfyUnregisterFunction,
ComponentHandlerFunction HandlerFunction
&41;
}
}
Remarks
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);