Package monero.wallet.model
Interface MoneroWalletListenerI
- All Known Implementing Classes:
MoneroWalletListener
public interface MoneroWalletListenerI
Interface to receive wallet notifications.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBalancesChanged(BigInteger newBalance, BigInteger newUnlockedBalance) Invoked when the wallet's balances change.voidonNewBlock(long height) Invoked when a new block is added to the chain.voidonOutputReceived(MoneroOutputWallet output) Invoked 3 times per received output: once when unconfirmed, once when confirmed, and once when unlocked.voidonOutputSpent(MoneroOutputWallet output) Invoked twice per spent output: once when confirmed and once when unlocked.voidonSyncProgress(long height, long startHeight, long endHeight, double percentDone, String message) Invoked as the wallet is synchronized.
-
Method Details
-
onSyncProgress
void onSyncProgress(long height, long startHeight, long endHeight, double percentDone, String message) Invoked as the wallet is synchronized.- Parameters:
height- - height of the synced blockstartHeight- - starting height of the sync requestendHeight- - ending height of the sync requestpercentDone- - sync progress as a percentagemessage- is a human-readable description of the current progress
-
onNewBlock
void onNewBlock(long height) Invoked when a new block is added to the chain.- Parameters:
height- - the height of the new block (i.e. the number of blocks before it).
-
onBalancesChanged
Invoked when the wallet's balances change.- Parameters:
newBalance- - new wallet balancenewUnlockedBalance- - new unlocked wallet balance
-
onOutputReceived
Invoked 3 times per received output: once when unconfirmed, once when confirmed, and once when unlocked.- Parameters:
output- - the received output
-
onOutputSpent
Invoked twice per spent output: once when confirmed and once when unlocked.- Parameters:
output- - the spent output
-