CallOperation
public protocol CallOperation : NetworkOperation
A network operation that knows how to execute a pCloud API call.
-
The result from executing the API call. Exists only when
stateisNetworkOperationState.completed.Declaration
Swift
var response: Call.Response? { get } -
Adds a block to be called on a specific queue when the operation receives its response.
Declaration
Swift
@discardableResult func addCompletionBlock(with queue: DispatchQueue?, _ block: @escaping (Call.Response) -> Void) -> SelfParameters
queueA queue to call
blockon. Ifnil, the queue on whichblockwill be called is undefined.blockCalled as soon as the operation receives its response. Referenced strongly by the operation.
View on GitHub
CallOperation Protocol Reference