Promote a Party Leader
Last updated on
When there is some update from the party info data like promoting a new party leader, all party members including party leader will get a notification and get new information about the party.
- Unreal Engine
- Unity
FRegistry::Lobby.Connect();
FRegistry::Lobby.SetPartyDataUpdateNotifDelegate(AccelByte::Api::Lobby::FPartyDataUpdateNotif::CreateLambda([](const FAccelByteModelsPartyDataNotif& Result)
{
// Do something if PartyDataUpdateNotifDelegate has been successful
}));
AccelBytePlugin.GetLobby().Connect();
AccelBytePlugin.GetLobby().PartyDataUpdateNotif += result =>
{
if (result.IsError)
{
// Do something if PartyDataUpdateNotif has an error
Debug.Log($"Error PartyDataUpdateNotif, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
}
else
{
// Do something if PartyDataUpdateNotif has been successful
}
};