List Broadcasts In-Game
Prerequisites
Start Session with Timezone Support (Optional)
using LootLocker.Requests;
using System;
public void StartSessionWithTimezone()
{
// Create session optionals to include timezone
LootLockerSessionOptionals optionals = new LootLockerSessionOptionals();
// For Windows, convert the system timezone to IANA format, read more in the section below
optionals.timezone = LootLockerTimezoneConverter.ConvertWindowsToIanaTzString(TimeZoneInfo.Local.StandardName);
// Start a guest session with timezone
LootLockerSDKManager.StartGuestSession((response) =>
{
if (response.success)
{
Debug.Log("Session started successfully with timezone: " + options.timezone);
// Proceed to retrieve broadcasts
}
else
{
Debug.LogError("Failed to start session: " + response.errorData.message);
}
}, optionals);
}About Timezones
Retrieve Broadcast Messages
Conclusion
Last updated
Was this helpful?



