Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
org.bitcoinj.jni | |
org.bitcoinj.kits |
High level wrapper APIs around the bitcoinj building blocks.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPeerEventListener
Convenience implementation of
PeerEventListener . |
class |
DownloadProgressTracker
An implementation of
AbstractPeerEventListener that listens to chain download events and tracks progress
as a percentage. |
Modifier and Type | Method and Description |
---|---|
void |
PeerGroup.addEventListener(PeerEventListener listener)
Same as
PeerGroup.addEventListener(PeerEventListener, java.util.concurrent.Executor) but defaults
to running on the user thread. |
void |
Peer.addEventListener(PeerEventListener listener)
Registers the given object as an event listener that will be invoked on the user thread.
|
void |
PeerGroup.addEventListener(PeerEventListener listener,
Executor executor)
Adds a listener that will be notified on the given executor when:
|
void |
Peer.addEventListener(PeerEventListener listener,
Executor executor)
Registers the given object as an event listener that will be invoked by the given executor.
|
boolean |
PeerGroup.removeEventListener(PeerEventListener listener)
The given event listener will no longer be called with events.
|
boolean |
Peer.removeEventListener(PeerEventListener listener) |
void |
PeerGroup.startBlockChainDownload(PeerEventListener listener)
Start downloading the blockchain from the first available peer.
|
Modifier and Type | Class and Description |
---|---|
class |
NativePeerEventListener
An event listener that relays events to a native C++ object.
|
Modifier and Type | Field and Description |
---|---|
protected PeerEventListener |
WalletAppKit.downloadListener |
Modifier and Type | Method and Description |
---|---|
WalletAppKit |
WalletAppKit.setDownloadListener(PeerEventListener listener)
If you want to learn about the sync process, you can provide a listener here.
|
Copyright © 2015. All rights reserved.