Schedules callbacks for the specified target on the specified dispatch queue.


func SCNetworkReachabilitySetDispatchQueue(_ target: SCNetworkReachability, _ queue: DispatchQueue?) -> Bool



The address or name that is set up for asynchronous notifications. Must not be NULL.


The libdispatch queue on which the target should run. Pass NULL to disable notifications and release the queue.

Return Value

TRUE if the target is scheduled successfully; otherwise, FALSE.

See Also

Preparing to Determine Reachability

func SCNetworkReachabilityGetTypeID() -> CFTypeID

Returns the type identifier of all SCNetworkReachability instances.

func SCNetworkReachabilitySetCallback(SCNetworkReachability, SCNetworkReachabilityCallBack?, UnsafeMutablePointer<SCNetworkReachabilityContext>?) -> Bool

Assigns a client to the specified target, which receives callbacks when the reachability of the target changes.

func SCNetworkReachabilityScheduleWithRunLoop(SCNetworkReachability, CFRunLoop, CFString) -> Bool

Schedules the specified network target with the specified run loop and mode.

func SCNetworkReachabilityUnscheduleFromRunLoop(SCNetworkReachability, CFRunLoop, CFString) -> Bool

Unschedules the specified target from the specified run loop and mode.