X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=doc%2Fparts%2FshowOnscreen.svg;fp=doc%2Fparts%2FshowOnscreen.svg;h=9a0447e123793ad4121a31362982a8497b8fabc1;hb=fe3d069d19d4c11c9d905da1d4412a77295a438d;hp=0000000000000000000000000000000000000000;hpb=f42ae47fe425b8ef353ec72ff9edaff451206cb8;p=apps%2Fonscreenapp.git diff --git a/doc/parts/showOnscreen.svg b/doc/parts/showOnscreen.svg new file mode 100644 index 0000000..9a0447e --- /dev/null +++ b/doc/parts/showOnscreen.svg @@ -0,0 +1,74 @@ +show/hide onscreen phaseuseruserhomescreen-servicehomescreen-serviceAppApponscreenapponscreenappwindowmanagerwindowmanagershow onscreenthe operation request onscreenshowWindow(){"application_id":"onscreenapp","parameter":{"area":"display area", "file":"qml file path liked appid/xxx.qml","data":{"the datas to onscreen qml"}}}push showWindow event{"application_id":"onscreenapp","parameter":{"area":"display area", "file":"qml file path liked appid/xxx.qml","data":{"the datas to onscreen qml"},"replyto":"caller application id"}}get and save parametersactivateWindow("onscreeapp", "display area")alt[can show]push syncDraw eventendDraw("onscreeapp")load and display qml fileqml path "/usr/lib/qt5/qml/AGL/OnScreen/appid/xxx.qml"[can't show]do nothinghide onscreentap onscreen's buttonreplyShowWindow(){"application_id":"the application id who called onscreenapp","parameter": {"buttonName": "VOLUME_UP", "buttonPressMode": "shortPress", "buttonPressState": "release"}}push replyShowWindow eventcall reply functionhideWindow("onscreenapp")push hideWindow event{"application_id":"request hideWindow application id"}deactivateWindow("onscreenapp");hide window \ No newline at end of file