One Logo Pool Ball
Network · IOS API REFERENCE

NWConnection.PendingDataTransferReport

class · iOS 13.0+ · SDK 27.1

class PendingDataTransferReport

A pending data transfer report represents a report that was started with startDataTransferReport(), and may be collected to generate a completed DataTransferReport.

Members (1)

method · iOS 13.0+

collect

TypeScript
collect(queue: _Dispatch_DispatchQueue, completion: ((arg0: NWConnection_DataTransferReport) => void)): void
Swift declaration
@preconcurrency func collect(queue: DispatchQueue, completion: @escaping @Sendable (NWConnection.DataTransferReport) -> Void)

Request collection of values in a DataTransferReport, effectively ending the outstanding report begun with startDataTransferReport(). Once the report has been collected, the completion handler will be invoked exactly once on the provided DispatchQueue.

Skipped declarations

No declarations were skipped in this snapshot.

All Network types →