public interface PCTaskCallback
Modifier and Type | Method and Description |
---|---|
default void |
onTaskCancelled()
Called when task returned in
onTaskCreated(PCTask) is cancelled |
default void |
onTaskCreated(PCTask task)
Called when the task encapsulating the network connection is created and can be managed.
Note that this callback might not be invoked at all if the sdk method execution does not reach the state where the network connection is opened (e.g. |
default void onTaskCreated(PCTask task)
task
- PCTask which represents the connection. Never null.
Call PCTasksManager.cancel(PCTask)
to stop the task and close network
connectiondefault void onTaskCancelled()
onTaskCreated(PCTask)
is cancelled