Enum MrpPairingRequirement
- Namespace
- AppleTvControlLibrary.Discovery.Mrp
- Assembly
- AppleTvControlLibrary.Discovery.dll
Whether pairing is required, supported, or disabled for a discovered MRP service.
public enum MrpPairingRequirement
Fields
Disabled = 2Pairing has been disabled on this device. pyatv/protocols/mrp/init.py — line 1095-1096 as of pyatv 0.18.0
NotNeeded = 0Pairing is not needed (the service is disabled, e.g. tvOS 15+). pyatv/protocols/mrp/init.py — line 1091-1092 as of pyatv 0.18.0
Optional = 1Pairing is supported but not required ("allowpairing" is "yes"). pyatv/protocols/mrp/init.py — line 1093-1094 as of pyatv 0.18.0
Remarks
pyatv's PairingRequirement enum (pyatv/const.py — line 213-229 as of pyatv 0.18.0) has five
values (Unsupported, Disabled, NotNeeded, Optional, Mandatory), but MRP's own
service_info (pyatv/protocols/mrp/init.py — line 1085-1096 as of pyatv 0.18.0) only ever
produces three of them, so only those three are modeled here rather than inventing meanings for
the unused values.