add intents docs and samples

This commit is contained in:
Evgeny
2022-07-22 09:50:33 +03:00
parent 8f51666265
commit 6eb0de8264
5 changed files with 121 additions and 4 deletions

11
samples/msg-receiver.lua Normal file
View File

@@ -0,0 +1,11 @@
function on_resume()
ui:show_text("empty")
end
function on_message(value)
if type(value) == "table" then
ui:show_text("table first element: "..value[1])
else
ui:show_text(value)
end
end