Objects of this class publish an advertisement for a specific service that your app provides and notifies your app about invitations from nearby peers.
Before you can advertise a service, you must create a Peer object that identifies your app and the user to nearby devices.
Call this method after you received a receivedInvite event to accept or reject an invitation.
The ID of the invite you are responding to.
trueif you wish to accept the invite,
The session with which to associate the peer that sent the invitate.
Begins advertising the service provided by a local peer.
Stops advertising the service provided by a local peer.
discoveryInfo passed when this Advertiser was created.
The service type that your app is advertising.
This event is fired if something goes wrong with the advertising.
The error code.
The error domain.
The error description.
This event is fired when an invite is received from a remote peer. You must call the inviteResponse function in response to this event to accept or reject the invitation.