Skip to Content

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

ParameterType

address

string

callback

() => void

Returns

Unsubscribe function

(): void

Returns

void

Last updated on