Class AirPlayDiscoveryResult
- Namespace
- AppleTvControlLibrary.Discovery.AirPlay
- Assembly
- AppleTvControlLibrary.Discovery.dll
Represents a discovered AirPlay service.
public sealed class AirPlayDiscoveryResult
- Inheritance
-
AirPlayDiscoveryResult
- Inherited Members
Remarks
Initializes a new instance of the AirPlayDiscoveryResult class.
Constructors
AirPlayDiscoveryResult(string, IPAddress?, int, string?, AirPlayPairingRequirement, IReadOnlyDictionary<string, string>)
Represents a discovered AirPlay service.
public AirPlayDiscoveryResult(string name, IPAddress? address, int port, string? uniqueId, AirPlayPairingRequirement pairingRequirement, IReadOnlyDictionary<string, string> properties)
Parameters
namestringThe advertised service or device name.
addressIPAddressThe discovered IP address, if available.
portintThe advertised service port.
uniqueIdstringThe advertised unique device identifier, if available.
pairingRequirementAirPlayPairingRequirementThe pairing requirement advertised by the service.
propertiesIReadOnlyDictionary<string, string>The DNS-SD TXT properties advertised by the service.
Remarks
Initializes a new instance of the AirPlayDiscoveryResult class.
Properties
Address
Gets the resolved address of the device, if known.
public IPAddress? Address { get; }
Property Value
- IPAddress
The resolved address of the device, if known.
Name
Gets the mDNS service instance name (e.g. "Living Room").
public string Name { get; }
Property Value
- string
The mDNS service instance name (e.g. "Living Room").
PairingRequirement
Gets whether/how pairing is required for this device.
public AirPlayPairingRequirement PairingRequirement { get; }
Property Value
- AirPlayPairingRequirement
Whether/how pairing is required for this device.
Port
Gets the AirPlay port.
public int Port { get; }
Property Value
- int
The AirPlay port.
Properties
Gets the raw decoded TXT record properties.
public IReadOnlyDictionary<string, string> Properties { get; }
Property Value
- IReadOnlyDictionary<string, string>
The raw decoded TXT record properties.
UniqueId
Gets a stable unique identifier for the device (the "deviceid" TXT record), or null if not present.
public string? UniqueId { get; }