public class PCTask
extends java.lang.Object
PCTransactionsManager.getTransactionList(PCUser, PCListTransactionsCallback)
,
PCTransactionsManager.getTransactionBinaryData(PCUser, PCTransaction, PCGetTransactionBinaryDataCallback)
,
PCUsersManager.register(PCUser, String, PCNetCallback)
etc.PCTransactionsManager.getTransactionBinaryData(PCUser, PCTransaction, PCGetTransactionBinaryDataCallback)
.
Binary data can be fairly large and the client of your app might decide not to wait until it is loaded. They might
close the activity but the connection will not be finished and binary data will keep loading.PCTransactionsManager.getTransactionBinaryData(PCUser, PCTransaction, PCGetTransactionBinaryDataCallback)
(and many other methods) returns instance of PCTask via callback encapsulating the current connection with server.
Once you need to cancel downloading binary data and break the connection, you can callModifier and Type | Method and Description |
---|---|
PCTasksManager.TaskTag |
getTag()
Returns tag of the current task
|
boolean |
isRunning()
If task is running or not
|
java.lang.String |
toString() |
public boolean isRunning()
public PCTasksManager.TaskTag getTag()
PCTasksManager.TaskTag
public java.lang.String toString()
toString
in class java.lang.Object