Returns a dictionary representing a TXT record given as an
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
A data object encoding a TXT record.
A dictionary representing
txtData. The dictionary’s keys are
NSString objects using UTF8 encoding. The values associated with all the dictionary’s keys are
NSData objects that encapsulate strings or data.
Fails an assertion if
txtData cannot be represented as an
Configuring Network Services
var addresses: [Data]?
A read-only array containing
NSData objects, each of which contains a socket address for the service.
var includesPeerToPeer: Bool
Specifies whether to also publish, resolve, or monitor this service over peer-to-peer Bluetooth and Wi-Fi, if available.
false by default.
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