Crate termux

Source
Expand description

§Installation

Download the Termux:API add-on.

You also need to install termux-api package. To install Run.

pkg i termux-api

Then install the crate

cargo add termuxapi

§Usage

Each command in termux-api is mapped to a function by replacing - with ::.

§Example

The function equivalent of termux-clipboard-get would be termux::clipboard::get

All functions return a Result.

§Implemented commands

Not all commands are implemented yet. This is the list of all implemented commands.

Modules§

api
audio
battery
call
camera
clipboard