Attempts to advertise the receiver on the network, with the given options.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Foundation
Declaration
- (void)publishWithOptions:(NSNet Service Options)options;
Parameters
serviceOptions
Options for the receiver. The supported options are described in
NSNet
.Service Options
Discussion
This method returns immediately, with success or failure indicated by the callbacks to the delegate.