AdvertiserAssistant Class
This is a convenience class that handles advertising, presents incoming invitations to the user and handles users’ responses. This class should be used to provide a user interface for handling invitations when your app does not require programmatic control over the invitation process.
Item Index
Properties
Methods
start
()
Void
Begins advertising the service provided by a local peer.
Returns:
Void:
stop
()
Void
Stops advertising the service provided by a local peer.
Returns:
Void:
Properties
discoveryInfo
Object
read-only
The discoveryInfo
passed when this Advertiser Assistant was created.
serviceType
String
read-only
The service type that your app is advertising.
Events
dismissedInvitation
Indicates that the advertiser assistant finished showing the invitation to the user.
willPresentInvitation
Indicates that the advertiser assistant is about to present an invitation to the user.