Table of Contents

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

name string

The advertised service or device name.

address IPAddress

The discovered IP address, if available.

port int

The advertised service port.

uniqueId string

The advertised unique device identifier, if available.

pairingRequirement AirPlayPairingRequirement

The pairing requirement advertised by the service.

properties IReadOnlyDictionary<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; }

Property Value

string

A stable unique identifier for the device (the "deviceid" TXT record), or null if not present.