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().
◆ 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
-
- Parameters
-
| eventType | The event type to subscribe to |
| handler | The event handler |
◆ Unsubscribe< T >()
| static void LootLocker.Requests.LootLockerSDKManager.Unsubscribe< T > |
( |
LootLockerEventType |
eventType, |
|
|
LootLockerEventHandler< T > |
handler |
|
) |
| |
|
inlinestatic |
Unsubscribe from SDK events.
- Template Parameters
-
- Parameters
-
| eventType | The event type to unsubscribe from |
| handler | The event handler to remove |