Send output result when screen analyzer event occurs 30/281630/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 19 Sep 2022 08:51:24 +0000 (17:51 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 20 Sep 2022 05:48:27 +0000 (14:48 +0900)
- Issue:
IU engine does not invoke callback for sending output result to client
app when screen analyzer event occurs.

- Solution:
This patch adds code for invoking output result callback, and this code
is for sending clickable object information to client app.

Change-Id: I1b4be635b3dacc8af112acf604a7d506a47b62e3
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
src/mmimgr/iu/VoiceTouchEngine.cpp

index 7d68d88..2b021e0 100644 (file)
@@ -449,6 +449,8 @@ bool VoiceTouchEngine::handleScreenAnalyzerInput(mmi_provider_event_screen_analy
        g_list_foreach(screenAnalyzerEvent->list, iterateObjectCallback, static_cast<gpointer>(this));
 
        makeClickableItemInfo(timestamp, provider);
+       invokeOutputResultCallback(provider.jsonToString());
+
        return true;
 }