Class MrpDiscoveryResult
- Namespace
- AppleTvControlLibrary.Discovery.Mrp
- Assembly
- AppleTvControlLibrary.Discovery.dll
Represents a discovered MRP (Media Remote Protocol) service.
public sealed class MrpDiscoveryResult
- Inheritance
-
MrpDiscoveryResult
- Inherited Members
Remarks
Initializes a new instance of the MrpDiscoveryResult class.
Constructors
MrpDiscoveryResult(string, IPAddress?, int, string?, bool, MrpPairingRequirement, IReadOnlyDictionary<string, string>)
Represents a discovered MRP (Media Remote Protocol) service.
public MrpDiscoveryResult(string name, IPAddress? address, int port, string? uniqueId, bool isEnabled, MrpPairingRequirement 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.
isEnabledboolWhether the MRP service is enabled.
pairingRequirementMrpPairingRequirementThe 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 MrpDiscoveryResult 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.
IsEnabled
Gets a value indicating whether MRP is considered enabled on this device. pyatv disables MRP
once SystemBuildVersion's leading numeric build component is 19 or higher (tvOS 15+,
where Companion Link superseded MRP for remote control).
public bool IsEnabled { get; }
Property Value
- bool
A value indicating whether MRP is considered enabled on this device. pyatv disables MRP once
SystemBuildVersion's leading numeric build component is 19 or higher (tvOS 15+, where Companion Link superseded MRP for remote control).
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 service.
public MrpPairingRequirement PairingRequirement { get; }
Property Value
- MrpPairingRequirement
Whether/how pairing is required for this service.
Port
Gets the MRP port.
public int Port { get; }
Property Value
- int
The MRP 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 "UniqueIdentifier" TXT record), or null if not present.
public string? UniqueId { get; }