MCNearbyServiceAdvertiser Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides programmatic control for advertising the device for multipeer connectivity.
[Foundation.Register("MCNearbyServiceAdvertiser", true)]
public class MCNearbyServiceAdvertiser : Foundation.NSObject
[<Foundation.Register("MCNearbyServiceAdvertiser", true)>]
type MCNearbyServiceAdvertiser = class
inherit NSObject
- Inheritance
- Attributes
Remarks
Multipeer connectivity's discovery phase involves two roles: browsing and advertising. When an application makes itself available for connection, it is advertising. Advertising may be controlled by either a MCAdvertiserAssistant or can be fully customized with a MCNearbyServiceAdvertiser. For a discussion of the discovery process, see the remarks for MCSession.
Constructors
| Name | Description |
|---|---|
| MCNearbyServiceAdvertiser(MCPeerID, NSDictionary, String) |
Creates an object identified as |
| MCNearbyServiceAdvertiser(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| MCNearbyServiceAdvertiser(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Delegate |
An instance of the MultipeerConnectivity.IMCNearbyServiceAdvertiserDelegate model class which acts as the class delegate. |
| Description | (Inherited from NSObject) |
| DiscoveryInfo |
A small dictionary of data available to aide peer discovery and negotiation. |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| MyPeerID |
The identity by which this device will be known on the peer network. |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| ServiceType |
The network protocol this peer supports. |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| WeakDelegate |
An object that can respond to the delegate protocol for this type |
| Zone | (Inherited from NSObject) |