Skip to main content
Reown Docs

Events

1 min read

AppKit Unity provides a comprehensive event system that allows you to respond to various state changes in your application. All events are automatically dispatched on Unity's main thread, making them safe to use for UI updates and GameObject manipulation.

AppKit Events#

Event Arguments#

InitializeEventArgs#

Empty event arguments indicating successful initialization.

AccountConnectedEventArgs#

  • Account Account - The currently active connected account
  • IEnumerable<Account> Accounts - All connected accounts
  • Func<Task<Account>> GetAccountAsync - (Deprecated) Use Account property instead
  • Func<Task<Account[]>> GetAccountsAsync - (Deprecated) Use Accounts property instead

AccountDisconnectedEventArgs#

Empty event arguments indicating account disconnection.

AccountChangedEventArgs#

  • Account Account - The new active account

ChainChangedEventArgs#

  • Chain PreviousChain - The previously active chain (can be null)
  • Chain NewChain - The newly active chain

Common Use Cases#

Updating UI on Account Changes#

Handling Connection State#