Interface ICompanionDiscovery
- Namespace
- AppleTvControlLibrary.Discovery.Companion
- Assembly
- AppleTvControlLibrary.Discovery.dll
Discovers Companion Link devices on the local network. Kept behind an interface so multicast discovery - the least portable part of the library - can be swapped for a static address on hosts where multicast/mDNS isn't available or reliable.
public interface ICompanionDiscovery
Methods
ScanAsync(TimeSpan, CancellationToken)
Scans the network for Companion Link devices.
Task<IReadOnlyList<CompanionDiscoveryResult>> ScanAsync(TimeSpan timeout, CancellationToken cancellationToken = default)
Parameters
timeoutTimeSpanHow long to wait for responses.
cancellationTokenCancellationTokenA token to cancel the scan.
Returns
- Task<IReadOnlyList<CompanionDiscoveryResult>>
The discovered Companion Link devices.