#
WalletConnectManager
kycdao-mobile - v0.1.0 / WalletConnectManager
A WalletConnect V1 compatibility support class. Use this, if you want to connect the verification flow to a wallet through WalletConnect
#
Table of contents
#
Methods
connect listWallets startListening subscribeOnSession getInstance
#
Methods
#
connect
▸ connect(wallet
): Promise
<void
>
Used for connecting to a wallet app. If the wallet is installed, it will be opened with a connection request prompt. If the wallet is not installed, it will launch the AppStore where the user can download it.
iOS Only Parameter
The Wallet parameter is reuired on iOS but unused on Android. You don't need a wallet app selector on Android, the system handles the deeplinking.
Warning
This method should only be called from the main thread.
Note
When a wallet in the WalletConnect registry does not have an associated universal link, and only provides a deep link, and the user does not have the selected wallet installed, this method will do nothing
#
Parameters
#
Returns
Promise
<void
>
#
Defined in
WalletConnect/WalletConnectManager.tsx:125
#
listWallets
▸ listWallets(): Promise
<[Wallet
]>
Provides a list of usable wallets for WalletConnect services based on the WalletConnect V1 registry
iOS Only
This function is only available on iOS.
iOS requires direct linking to wallets because of the fundamental differences in how iOS and Android handle deeplinks.
Due to this, iOS has to call the
Note
This is a filtered list of wallets, and may not contain every wallet the registry returns
#
Returns
Promise
<[Wallet
]>
The list of compatible mobile wallets
#
Defined in
WalletConnect/WalletConnectManager.tsx:101
#
startListening
▸ startListening(): void
Start listening for incoming connections from wallets
#
Returns
void
#
Defined in
WalletConnect/WalletConnectManager.tsx:83
#
subscribeOnSession
▸ subscribeOnSession(start
, failure
): EmitterSubscription
Subscribe to WalletConnect session start and failure events
#
Parameters
#
Returns
EmitterSubscription
A subscription that should be kept until it is being used. Call remove()
on the subscription when it is no longer needed.
#
Defined in
WalletConnect/WalletConnectManager.tsx:36
#
getInstance
▸ Static
getInstance(): WalletConnectManager
WalletConnectManager singleton instance
#
Returns
WalletConnectManager
#
Defined in
WalletConnect/WalletConnectManager.tsx:22