diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2018-12-20 16:39:06 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2019-02-12 13:49:55 +0000 |
commit | ffcb90a879ab1c1d552950cccda12ba14da9230e (patch) | |
tree | 674d94986746fdb19fac9bd3950a0d30d5cc3f31 /examples/applicationmanager/intents/shared | |
parent | 81d6df8e934ebdac1553e3cb102106fc0fb64f93 (diff) |
Add documentation for the intents example
Change-Id: I474f8bc8d8a3efa7b0f8405892d56a793a88e883
Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
Diffstat (limited to 'examples/applicationmanager/intents/shared')
-rw-r--r-- | examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml (renamed from examples/applicationmanager/intents/shared/IntentClient.qml) | 8 | ||||
-rw-r--r-- | examples/applicationmanager/intents/shared/IntentsUIPage.qml (renamed from examples/applicationmanager/intents/shared/IntentPage.qml) | 0 |
2 files changed, 7 insertions, 1 deletions
diff --git a/examples/applicationmanager/intents/shared/IntentClient.qml b/examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml index b24753a5..4f56b576 100644 --- a/examples/applicationmanager/intents/shared/IntentClient.qml +++ b/examples/applicationmanager/intents/shared/IntentsApplicationWindow.qml @@ -59,12 +59,13 @@ ApplicationManagerWindow { id: root property string flavor: ApplicationInterface.applicationId.split(".")[1] - IntentPage { + IntentsUIPage { id: intentPage anchors.fill: parent flavor: root.flavor title: ApplicationInterface.name["en"] + //! [Send Intent] onRequest: { var request = IntentClient.sendIntentRequest(intentId, applicationId, parameters) request.onReplyReceived.connect(function() { @@ -72,12 +73,15 @@ ApplicationManagerWindow { request.succeeded ? request.result : request.errorMessage) }) } + //! [Send Intent] + //! [Intent Animation] RotationAnimation on rotation { id: rotationAnimation running: false duration: 500; from: 0; to: 360 } + //! [Intent Animation] SequentialAnimation on scale { id: scaleAnimation @@ -101,6 +105,7 @@ ApplicationManagerWindow { } } + //! [Intent Handler] IntentHandler { intentIds: "rotate-window" onRequestReceived: { @@ -108,6 +113,7 @@ ApplicationManagerWindow { request.sendReply({ "done": true }) } } + //! [Intent Handler] IntentHandler { intentIds: "scale-window" diff --git a/examples/applicationmanager/intents/shared/IntentPage.qml b/examples/applicationmanager/intents/shared/IntentsUIPage.qml index ccf5534f..ccf5534f 100644 --- a/examples/applicationmanager/intents/shared/IntentPage.qml +++ b/examples/applicationmanager/intents/shared/IntentsUIPage.qml |