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

17
samples/msg-sender.lua Normal file
View File

@@ -0,0 +1,17 @@
function on_resume()
ui:show_lines{
"send text",
"send 123",
"send table",
}
end
function on_click(idx)
if idx == 1 then
system:send_message("text", "msg-receiver.lua")
elseif idx == 2 then
system:send_message(1)
else
system:send_message{ "one", "two", "three" }
end
end