Instance Property

serviceType

The service type that your app is advertising

Declaration

var serviceType: String { get }

Discussion

This value is set when you initialize the object, and cannot be changed later.

See Also

Configuring and Initialization

var delegate: MCNearbyServiceAdvertiserDelegate?

The delegate object that handles advertising-related events.

var discoveryInfo: [String : String]?

The info dictionary passed when this object was initialized.

var myPeerID: MCPeerID

The local peer ID for this instance.

Beta Software

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