Interface that receives notifications related to ProtectionHandler.
More...
#include <protection_handler.h>
Interface that receives notifications related to ProtectionHandler.
- Note
- This interface must be implemented by applications using the protection SDK
◆ OnCreateProtectionHandlerFailure()
virtual void ProtectionHandler::Observer::OnCreateProtectionHandlerFailure |
( |
const std::exception_ptr & | error, |
|
|
const std::shared_ptr< void > & | context ) |
|
inlinevirtual |
Called when ProtectionHandler creation failed.
- Parameters
-
error | Failure that occurred during creation |
context | The same context that was passed to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync |
- Note
- An application can pass any type of context (for example, std::promise, std::function) to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync, and that same context will be forwarded as-is to ProtectionEngine::Observer::OnCreateProtectionHandlerSuccess or ProtectionEngine::Observer::OnCreateProtectionHandlerFailure
◆ OnCreateProtectionHandlerSuccess()
virtual void ProtectionHandler::Observer::OnCreateProtectionHandlerSuccess |
( |
const std::shared_ptr< ProtectionHandler > & | protectionHandler, |
|
|
const std::shared_ptr< void > & | context ) |
|
inlinevirtual |
Called when ProtectionHandler was created successfully.
- Parameters
-
protectionHandler | The newly created ProtectionHandler |
context | The same context that was passed to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync |
- Note
- An application can pass any type of context (for example, std::promise, std::function) to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync, and that same context will be forwarded as-is to ProtectionEngine::Observer::OnCreateProtectionHandlerSuccess or ProtectionEngine::Observer::OnCreateProtectionHandlerFailure
The documentation for this class was generated from the following file: