2.4.4 DeckLink Device Notification¶
A callback notification can be provided to an application when a Thunderbolt or USB 3.0 based DeckLink device is connected or disconnected.
An application that supports connection notification should perform the following steps:
Create a callback class that subclasses
IDeckLinkDeviceNotificationCallbackand implements all of its methods. The callback class will be called asynchronously from an API private thread. Create an instance of the callback class.Call
IDeckLinkDiscovery::InstallDeviceNotifications()and provide theIDeckLinkDeviceNotificationCallbackobject.IDeckLinkDeviceNotificationCallback::DeckLinkDeviceArrived()is called for all currently connected devices.When a DeckLink device is connected after the initial reporting of devices then
IDeckLinkDeviceNotificationCallback::DeckLinkDeviceArrived()will be called.When a DeckLink device is removed,
IDeckLinkDeviceNotificationCallback::DeckLinkDeviceRemoved()is called on an API-private thread.Before the application exits, call
IDeckLinkDiscovery::UninstallDeviceNotifications().