MCAdvertiser is a convenience class that handles advertising, presents incoming invitations to the user, and handles users’ responses. Use this class to provide a user interface for handling invitations when your app does not require programmatic control over the invitation process.
- iOS 7.0+
- macOS 10.10+
- tvOS 9.0+
Before you can advertise a service, you must create an
MCPeer object that identifies your app and the user to nearby devices.