Closed AntonAleksandrov13 closed 6 years ago
addDownloadProgressListener
is deprecated method. I removed it right now. Also i updated library and you can use simpleClient.downloadTorrentAsync
method which returns TorrentManager
instance. You can add listeners to torrent manager and monitoring some state
//init simpleClient how earlier
TorrentManager torrentManager = client.downloadTorrentAsync();
torrentManager.addListener(new TorrentListenerWrapper() {
//override methods here. For more information see TorrentListener
});
btw thank you for feedback!:)
Thank you for the quick response and help!
Seems like method
public void addDownloadProgressListener(DownloadProgressListener listener)
inSharedTorrent
is already implemented, but I cannot find the way to use it. In my case, I am working withSimpleClient
object.Thanks for help in advance!