UE::Online::EOS_RegisterComponentEventHandler

EOS event registration utility for binding an EOS notifier registration to a RAII object which handles unregistering when it exits scope.

Choose your operating system:

Windows

macOS

Linux

References

Module

OnlineServicesEOS

Header

/Engine/Plugins/Online/Experimental/OnlineServicesEOS/Source/Public/OnlineServicesEOSTypes.h

Include

#include "OnlineServicesEOSTypes.h"

Syntax

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
        )
    }
}

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);