Freigeben über


NWConnection.SetViabilityChangeHandler(Action<Boolean>) Method

Definition

Set a handler that is called when data can be sent or received.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public void SetViabilityChangeHandler(Action<bool> callback);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.SetViabilityChangeHandler : Action<bool> -> unit

Parameters

callback
Action<Boolean>

The callback to call when data can be sent or received.

Attributes

Applies to