Skip to content

Commit

Permalink
Update device-apps.rst
Browse files Browse the repository at this point in the history
New "activate" parameter in "Action" object
  • Loading branch information
dbarysk committed Sep 24, 2019
1 parent 322982f commit 412578c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reference-docs/device-apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,12 @@ To execute an action just send an Action object in the body of the request to th
::
{
"id" : "<action_id>"
"id" : "<action_id>",
"params": {},
"activate": true|false
}

Parameter "activate" controls whether widget should become visible when the action is invoked.

Here are some actions of preinstalled apps:

Expand Down Expand Up @@ -495,7 +498,8 @@ Some actions have parameters, for example ``clock.alarm``, ``clock.clockface`` a
"params": {
"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAOklEQVQYlWNUVFBgwAeYcEncv//gP04FMEmsCmCSiooKjHAFMEF0SRQTsEnCFcAE0SUZGBgYGAl5EwA+6RhuHb9bggAAAABJRU5ErkJggg==",
"type" : "custom"
}
},
"activate": true
}


Expand Down

0 comments on commit 412578c

Please sign in to comment.