onKeyAvailable
onKeyAvailable(
address:string,callback: () =>void): () =>void
Defined in: src/react/useEncryption.ts:31Â
Register a callback that fires when an encryption key becomes available for an address. If the key is already available, the callback fires immediately.
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
() => |
Returns
Unsubscribe function
():
void
Returns
void
Last updated on