获得手机短信内容 (device.get_sms)

声明

短信内容 = device.get_sms(倒数第N条)

参数及返回值

  • 倒数第N条
    • 手机短信根据时间倒叙排列后第N条
  • 剪贴板内容
    • 手机的剪贴板内容

说明

本函数只支持获得文字内容

示例

--获取最新收到的短信
local txt = device.get_sms(1) 
print(txt)

--获取最新收到的第二条短信
local txt = device.get_sms(2) 
print(txt)
powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""