setupWalletOnConnectEvent function
- @JS('dwa.setupWalletOnConnectEvent')
- BaseWalletAdapter walletAdapter,
- void onConnect(
- PublicKey publicKey
The onConnect
event is emitted after the wallet has successfully connected.
This event is typically used to update the application state to reflect that
the wallet is connected.
Implementation
@JS('dwa.setupWalletOnConnectEvent')
external void setupWalletOnConnectEvent(BaseWalletAdapter walletAdapter,
void Function(PublicKey publicKey) onConnect);