Bearbeiten

Freigeben über


NEPacketTunnelFlow.ReadPacketsAsync Method

Definition

Reads packets from the TUN interface and runs a handler when the operation completes.

public virtual System.Threading.Tasks.Task<NetworkExtension.NEPacketTunnelFlowReadResult> ReadPacketsAsync ();
abstract member ReadPacketsAsync : unit -> System.Threading.Tasks.Task<NetworkExtension.NEPacketTunnelFlowReadResult>
override this.ReadPacketsAsync : unit -> System.Threading.Tasks.Task<NetworkExtension.NEPacketTunnelFlowReadResult>

Returns

A task that represents the asynchronous ReadPackets operation. The value of the TResult parameter is of type System.Action<Foundation.NSData[],Foundation.NSNumber[]>.

Applies to