Enumeration

NWBrowser.State

States indicating whether a browser is able to discover services.

Declaration

enum NWBrowser.State

Topics

States

case setup

The browser has been initialized but not started.

case ready

The browser is registered for discovering services.

case failed(NWError)

The browser has encountered a fatal error.

case cancelled

The browser has been canceled.

Relationships

Conforms To

See Also

Managing Browsers

var stateUpdateHandler: ((NWBrowser.State) -> Void)?

A handler that receives browser state updates.

var state: NWBrowser.State { get }

The current state of the browser.

func cancel()

Stops browsing for services.

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