Search in sources :

Example 1 with AlertManager

use of io.bisq.core.alert.AlertManager in project bisq-api by mrosseel.

the class BisqApiWithUI method showSendAlertMessagePopup.

private void showSendAlertMessagePopup() {
    AlertManager alertManager = injector.getInstance(AlertManager.class);
    boolean useDevPrivilegeKeys = injector.getInstance(Key.get(Boolean.class, Names.named(AppOptionKeys.USE_DEV_PRIVILEGE_KEYS)));
    new SendAlertMessageWindow(useDevPrivilegeKeys).onAddAlertMessage(alertManager::addAlertMessageIfKeyIsValid).onRemoveAlertMessage(alertManager::removeAlertMessageIfKeyIsValid).show();
}
Also used : AlertManager(io.bisq.core.alert.AlertManager)

Aggregations

AlertManager (io.bisq.core.alert.AlertManager)1