Edit

Share via


NetworkReachability.SetNotification(NetworkReachability+Notification) Method

Definition

Configures the method to be invoked when network reachability changes.

public SystemConfiguration.StatusCode SetNotification (SystemConfiguration.NetworkReachability.Notification callback);
member this.SetNotification : SystemConfiguration.NetworkReachability.Notification -> SystemConfiguration.StatusCode

Parameters

callback
NetworkReachability.Notification

The method to invoke on a network reachability change.

Returns

True if the operation succeeded, false otherwise.

Remarks

The notification is invoked on either the runloop configured in the call to Schedule(CFRunLoop, String), or dispatched on the queue specified with SetDispatchQueue(DispatchQueue)

Applies to