Type Alias

nw_browser_browse_results_changed_handler_t

A handler that delivers updates about discovered services.

Declaration

typealias nw_browser_browse_results_changed_handler_t = (nw_browse_result_t, nw_browse_result_t, Bool) -> Void

Discussion

New results will be delivered as changes from previous results in batches. Your application should process changes once a batch is complete, and be ready to handle multiple updates.

See Also

Browsing for Services

func nw_browser_create(nw_browse_descriptor_t, nw_parameters_t?) -> nw_browser_t

Initializes a browser with a type of service to discover.

typealias nw_browse_descriptor_t

A service description used to discover Bonjour services.

func nw_browser_set_queue(nw_browser_t, DispatchQueue)

Sets the queue on which all browser events will be delivered.

func nw_browser_start(nw_browser_t)

Starts browsing for services.

typealias nw_browse_result_t

A discovered service and metadata about the service.