add phone functions

This commit is contained in:
Evgeny
2021-09-02 14:03:09 +03:00
parent 340e342f19
commit 9c6b2e3486
3 changed files with 35 additions and 0 deletions

11
samples/dialer-sample.lua Normal file
View File

@@ -0,0 +1,11 @@
function on_resume()
ui:show_lines({ "Make call 123", "Send SMS 123" })
end
function on_click(idx)
if idx == 1 then
phone:make_call("123")
else
phone:send_sms("123", "Test")
end
end