Interface iRefreshable

Namespace: Keychain

Assemblies: libkeychain.dll

iRefreshable

An iRefreshable implements a callback method onKeychainUpdate() that refreshes user interface elements with the possible new state of Personas and Contacts, as may be necessary for the developer to notify the user of the new states. The method is used by Keychain Core as a callback that is called upon the successful updating of the local blockchain cache.

Typically, onKeychainUpdate will get the set of Personas, the active Persona, and/or the set of Contacts from the Gateway object, and repaint the UI with the status of those returned objects.

The method is called exactly once after each successful update. Care should be taken to ensure this callback does not block indefinitely.

Insterface Methods

Return type Method and Description

void

onKeychainUpdate()

Update the relevate UI components with the new state.