Class MoneroWalletListener

java.lang.Object
monero.wallet.model.MoneroWalletListener
All Implemented Interfaces:
MoneroWalletListenerI

public class MoneroWalletListener extends Object implements MoneroWalletListenerI
Default wallet listener which takes no action on notifications.
  • Constructor Details

    • MoneroWalletListener

      public MoneroWalletListener()
  • Method Details

    • onSyncProgress

      public void onSyncProgress(long height, long startHeight, long endHeight, double percentDone, String message)
      Description copied from interface: MoneroWalletListenerI
      Invoked as the wallet is synchronized.
      Specified by:
      onSyncProgress in interface MoneroWalletListenerI
      Parameters:
      height - - height of the synced block
      startHeight - - starting height of the sync request
      endHeight - - ending height of the sync request
      percentDone - - sync progress as a percentage
      message - is a human-readable description of the current progress
    • onNewBlock

      public void onNewBlock(long height)
      Description copied from interface: MoneroWalletListenerI
      Invoked when a new block is added to the chain.
      Specified by:
      onNewBlock in interface MoneroWalletListenerI
      Parameters:
      height - - the height of the new block (i.e. the number of blocks before it).
    • onBalancesChanged

      public void onBalancesChanged(BigInteger newBalance, BigInteger newUnlockedBalance)
      Description copied from interface: MoneroWalletListenerI
      Invoked when the wallet's balances change.
      Specified by:
      onBalancesChanged in interface MoneroWalletListenerI
      Parameters:
      newBalance - - new wallet balance
      newUnlockedBalance - - new unlocked wallet balance
    • onOutputReceived

      public void onOutputReceived(MoneroOutputWallet output)
      Description copied from interface: MoneroWalletListenerI
      Invoked 3 times per received output: once when unconfirmed, once when confirmed, and once when unlocked.
      Specified by:
      onOutputReceived in interface MoneroWalletListenerI
      Parameters:
      output - - the received output
    • onOutputSpent

      public void onOutputSpent(MoneroOutputWallet output)
      Description copied from interface: MoneroWalletListenerI
      Invoked twice per spent output: once when confirmed and once when unlocked.
      Specified by:
      onOutputSpent in interface MoneroWalletListenerI
      Parameters:
      output - - the spent output