Package monero.wallet.model
Interface MoneroWalletListenerI
- All Known Implementing Classes:
MoneroWalletListener
public interface MoneroWalletListenerI
Interface to receive wallet notifications.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBalancesChanged
(BigInteger newBalance, BigInteger newUnlockedBalance) Invoked when the wallet's balances change.void
onNewBlock
(long height) Invoked when a new block is added to the chain.void
onOutputReceived
(MoneroOutputWallet output) Invoked 3 times per received output: once when unconfirmed, once when confirmed, and once when unlocked.void
onOutputSpent
(MoneroOutputWallet output) Invoked twice per spent output: once when confirmed and once when unlocked.void
onSyncProgress
(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
-