Edytuj

Udostępnij za pośrednictwem


MCNearbyServiceAdvertiser.DiscoveryInfo Property

Definition

A small dictionary of data available to aide peer discovery and negotiation.

public virtual Foundation.NSDictionary DiscoveryInfo { [Foundation.Export("discoveryInfo")] get; }
member this.DiscoveryInfo : Foundation.NSDictionary

Property Value

This will contain the data passed in to the C:MultipeerConnectivity.MCNearbyServiceAdvertiser(MultipeerConnectivity.MCPeerID,Foundation.NSDictionary,string) constructor.

Attributes

Remarks

The total size of keys and data in this dictionary should be less than ~400 bytes so that it can fit into a single Bluetooth data packet.

The dictionary should map strings to strings. Each key-value pair must be no more than 255 bytes with the equals sign inserted between them (i.e., System.Text.ASCIIEncoding.Unicode.GetByteCount(String.Format("{0}={1}",key,value)) <= 255 ). Keys may not contain equals signs.

The dictionary is advertised as a Bonjour TXT record (see RFC 6763, Section 6).

Applies to