didReceiveEvent(_:)
Provides a device event from the system to the extension.
Declaration
func didReceiveEvent(_ event: DDDeviceEvent)Parameters
- event:
A moment of interest in the device discovery life cycle.
Discussion
The system calls this function to give the app’s DDDiscoveryExtension information about the device. For example, when someone selects the device in the AirPlay menu (AVRoutePickerView), the system notifies the extension of the state change by invoking this callback.