One Logo Pool Ball
Network · IOS API REFERENCE

NWBrowser.Result

struct · iOS 13.0+ · SDK 27.1

struct Result

A NWBrowser.Result represents a snapshot of a service at some point in time on the network. A Browse Result includes information on how to connect to a service, what interfaces the service is available on, as well as any additional metadata provided to the browser by the service. (For Bonjour services, this is a TXT record). Whenever services become available, get modified, or go away, the browser will notify the user by providing a set of browse results tracking those changes.

Members (3)

get · iOS 13.0+

interfaces

TypeScript
get interfaces(): Array<NWInterface>
Swift declaration
let interfaces: [NWInterface]

The interfaces on which the service is advertised

get · iOS 13.0+

endpoint

TypeScript
get endpoint(): NWEndpoint
Swift declaration
let endpoint: NWEndpoint

The endpoint to connect to access the service.

get · iOS 13.0+

metadata

TypeScript
get metadata(): NWBrowser_Result_Metadata
Swift declaration
let metadata: NWBrowser.Result.Metadata

Additional metadata provided to the browser by the service.

Skipped declarations

No declarations were skipped in this snapshot.

All Network types →