Enum AirPlayPairingRequirement
- Namespace
- AppleTvControlLibrary.Discovery.AirPlay
- Assembly
- AppleTvControlLibrary.Discovery.dll
Whether pairing is required, supported, or disabled for a discovered AirPlay service.
public enum AirPlayPairingRequirement
Fields
Disabled = 2Access control disallows pairing (e.g. only devices belonging to the same home). pyatv/protocols/airplay/utils.py — line 266-269 as of pyatv 0.18.0
Mandatory = 1Pairing is mandatory (legacy pairing or PIN required). pyatv/protocols/airplay/utils.py — line 151-152 as of pyatv 0.18.0
NotNeeded = 0Pairing is not needed. pyatv/protocols/airplay/utils.py — line 157 as of pyatv 0.18.0
Unsupported = 3Pairing is not supported by pyatv for this device, either due to an unsupported model or an unsupported access control type ("Current User"). pyatv/protocols/airplay/utils.py — line 155-156, 270-276 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 AirPlay's own
update_service_details/get_pairing_requirement
(pyatv/protocols/airplay/utils.py — line 139-157, 262-278 as of pyatv 0.18.0) only ever produces
four of them, so only those four are modeled here rather than inventing meanings for the unused
value.