com.koushikdutta.async.DataTrackingEmitter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of androidasync Show documentation
Show all versions of androidasync Show documentation
Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
package com.koushikdutta.async;
/**
* Created by koush on 5/28/13.
*/
public interface DataTrackingEmitter extends DataEmitter {
public interface DataTracker {
void onData(int totalBytesRead);
}
void setDataTracker(DataTracker tracker);
DataTracker getDataTracker();
int getBytesRead();
void setDataEmitter(DataEmitter emitter);
}