Ready Consent Notifications
Last updated on
Once a player confirms they are ready to play, the other players in the party will receive a ready to play notification. The pass data of the user id who ready the match will be retrieved by the player when the notification arrives.
- Unreal Engine
- Unity
FRegistry::Lobby.Connect();
FRegistry::Lobby.SetReadyConsentNotifDelegate(AccelByte::Api::Lobby::ReadyConsentNotif.CreateLambda([](const FAccelByteModelsReadyConsentNotice& Result)
{
// Do something if ReadyConsentNotifDelegate has been successful
}));
AccelBytePlugin.GetLobby().Connect();
AccelBytePlugin.GetLobby().ReadyForMatchConfirmed += result =>
{
if (result.IsError)
{
// Do something if ReadyForMatchConfirmed has an error
Debug.Log($"Error ReadyForMatchConfirmed, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
}
else
{
// Do something if ReadyForMatchConfirmed has been successful
}
};