LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
Event System

Detailed Description

Subscribe to SDK lifecycle events (session start/end, token refresh).

The event system is the preferred way to react to authentication state changes without polling CheckInitialized().

Function Documentation

◆ Subscribe< T >()

static void LootLocker.Requests.LootLockerSDKManager.Subscribe< T > ( LootLockerEventType  eventType,
LootLockerEventHandler< T >  handler 
)
inlinestatic

Subscribe to SDK events using the unified event system.

Template Parameters
TThe event data type
Parameters
eventTypeThe event type to subscribe to
handlerThe event handler
Type Constraints
T :LootLockerEventData 

◆ Unsubscribe< T >()

static void LootLocker.Requests.LootLockerSDKManager.Unsubscribe< T > ( LootLockerEventType  eventType,
LootLockerEventHandler< T >  handler 
)
inlinestatic

Unsubscribe from SDK events.

Template Parameters
TThe event data type
Parameters
eventTypeThe event type to unsubscribe from
handlerThe event handler to remove
Type Constraints
T :LootLockerEventData 

Functions

static void LootLocker.Requests.LootLockerSDKManager.Subscribe< T > (LootLockerEventType eventType, LootLockerEventHandler< T > handler)
 Subscribe to SDK events using the unified event system.
 
static void LootLocker.Requests.LootLockerSDKManager.Unsubscribe< T > (LootLockerEventType eventType, LootLockerEventHandler< T > handler)
 Unsubscribe from SDK events.