获得剪贴板内容 (device.get_clipboard)

声明

剪贴板内容 = device.get_clipboard()

参数及返回值

  • 剪贴板内容
    • 手机的剪贴板内容

说明

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

示例

local success = device.set_clipboard('ATP很不错') 
if success then
    print('设置剪贴板成功')
else
    print('设置剪贴板失败')
end
res = device.get_clipboard() 
print('剪贴板内容是:'.. res)
powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""