WalletConnectCallback
public interface WalletConnectCallback
↳ package com.onekosmos.blockid.sdk.walletconnect
Defines methods for callback events related to wallet connect/ disconnect, transaction and personal signing requests.
Method Details
void onConnectionStateChange(Sign.Model.ConnectionState connectionState)
- A callback method to indicate the change in the proposer's connection state.
Parameters | |
---|---|
connectionState | Sign.Model.ConnectionState: Status of connection |
void onError(Sign.Model.Error error)
- A callback method triggered when there is an error.
Parameters | |
---|---|
error | Sign.Model.Error: Throwable error |
void onSessionDisconnect(Sign.Model.DeletedSession deletedSession)
- A callback method triggered when the active session is disconnected.
Parameters | |
---|---|
deletedSession | Sign.Model.DeletedSession: Deleted session information |
void onSessionProposal(Sign.Model.SessionProposal sessionProposal)
- A callback method to indicate that the proposer has sent a connection (pairing) request.
Parameters | |
---|---|
sessionProposal | Sign.Model.DeletedSession: Session proposal |
void onSessionRequest(Sign.Model.SessionRequest sessionRequest)
- A callback method triggered when a signing request (transaction, personal) is received.
Parameters | |
---|---|
sessionRequest | Sign.Model.SessionRequest: Session request |
void onSessionSettleResponse(Sign.Model.SettledSessionResponse.Result settleSessionResponse)
- A callback method indicating if there is change in the active session list.
Parameters | |
---|---|
settleSessionResponse | Sign.Model.SettledSessionResponse.Result: Updated session information |