mirror of
https://github.com/openharmony/distributed_camera.git
synced 2026-07-21 04:05:22 -04:00
add add unregister plugin listener
Signed-off-by: dl <dengliang21@huawei.com>
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
||||
std::map<std::string, std::string> QueryExtraInfo() override;
|
||||
bool IsSupportPlugin() override;
|
||||
void RegisterPluginListener(std::shared_ptr<PluginListener> listener) override;
|
||||
void UnRegisterPluginListener() override;
|
||||
|
||||
std::vector<std::string> GetCameras();
|
||||
|
||||
|
||||
@@ -96,6 +96,12 @@ void DCameraHandler::RegisterPluginListener(std::shared_ptr<PluginListener> list
|
||||
pluginListener_ = listener;
|
||||
}
|
||||
|
||||
void DCameraHandler::UnRegisterPluginListener()
|
||||
{
|
||||
DHLOGI("DCameraHandler::UnRegisterPluginListener");
|
||||
listener == nullptr;
|
||||
}
|
||||
|
||||
std::vector<std::string> DCameraHandler::GetCameras()
|
||||
{
|
||||
std::vector<std::string> cameras;
|
||||
|
||||
@@ -96,6 +96,12 @@ void DCameraHandler::RegisterPluginListener(std::shared_ptr<PluginListener> list
|
||||
pluginListener_ = listener;
|
||||
}
|
||||
|
||||
void DCameraHandler::UnRegisterPluginListener()
|
||||
{
|
||||
DHLOGI("DCameraHandler::UnRegisterPluginListener");
|
||||
listener == nullptr;
|
||||
}
|
||||
|
||||
std::vector<std::string> DCameraHandler::GetCameras()
|
||||
{
|
||||
std::vector<std::string> cameras;
|
||||
|
||||
Reference in New Issue
Block a user