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

The current state of the browser.

func cancel()

Stops browsing for services.