The Termux:API add-on provides command line access to device API:s:
* Read and send sms messages from your terminal.
* Access device GPS location sensor from scripts.
* Pipe the result of commands into the device text-to-speech engine.
* Vibrate the device when something interesting happens.
* Access the system clipboard from shell scripts.
* List contacts from the system contact list.
Besides installing this app an additional package is required to install inside Termux:
$ apt install termux-api
See the following documentation about available API commands:
https://wiki.termux.com/wiki/Termux:API
NOTE: This is an add-on which requires that the main Termux app is installed to use.
Termux:API插件提供对设备API的命令行访问:s:
*从终端读取并发送短信。
*从脚本访问设备GPS位置传感器。
*将命令结果传送到设备文本到语音引擎。
*当有趣的事情发生时,振动设备。
*从shell脚本访问系统剪贴板。
*列出系统联系人列表中的联系人。
除了安装此应用程序外,还需要在Termux中安装一个额外的软件包:
$ apt install termux-api
请参阅以下有关可用API命令的文档:
https://wiki.termux.com/wiki/Termux:API
注意:这是一个加载项,需要安装主要的Termux应用程序才能使用。