Function

SCNetworkReachabilityUnscheduleFromRunLoop(_:_:_:)

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

Declaration

func SCNetworkReachabilityUnscheduleFromRunLoop(_ target: SCNetworkReachability, _ runLoop: CFRunLoop, _ runLoopMode: CFString) -> Bool

Parameters

target

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

runLoop

The run loop on which the target should be unscheduled. Must not be NULL.

runLoopMode

The mode in which to unschedule the target. Must not be NULL.

Return Value

TRUE if the target is unscheduled 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 SCNetworkReachabilitySetDispatchQueue(SCNetworkReachability, DispatchQueue?) -> Bool

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software