2.5.32 IDeckLinkNotification Interface¶
The IDeckLinkNotification
interface is used to install or remove the callback for receiving DeckLink device notifications.
Interface |
Interface ID |
Description |
---|---|---|
IID_IDeckLink |
An |
|
IID_IDeckLinkNotificationCallback |
An |
|
IID_IDeckLinkNotificationCallback |
An |
2.5.32.1 IDeckLinkNotification::Subscribe method¶
-
HRESULT IDeckLinkNotification::Subscribe(BMDNotifications topic, IDeckLinkNotificationCallback *theCallback);¶
The Subscribe method registers a callback object for a given topic.
- Parameters:
topic – The notification event type.
theCallback – The callback object implementing the
IDeckLinkNotificationCallback
interface.
- Return values:
E_INVALIDARG – The callback parameter variable is NULL
E_FAIL – Failure
S_OK – Success
2.5.32.2 IDeckLinkNotification::Unsubscribe method¶
-
HRESULT IDeckLinkNotification::Unsubscribe(BMDNotifications topic, IDeckLinkNotificationCallback *theCallback);¶
The Unsubscribe method removes a notification event type from a callback object.
- Parameters:
topic – The notification event type.
theCallback – The callback object implementing the
IDeckLinkNotificationCallback
interface.
- Return values:
E_INVALIDARG – The callback parameter variable is NULL
E_FAIL – Failure
S_OK – Success