Skip to content

TermuxAPI reference

Daniil edited this page Dec 14, 2023 · 1 revision

Basic functions

Termux.api(state) -> void

Termux.syscall(command) -> {stdin, stdout, stderr, wait_thr}

Termux.finger() -> {stdin, stdout, stderr, wait_thr}

Termux.brightness(amount) -> void


Notification functions

Termux.notification(title, content, id = nil, alertOnce = nil, button1 = nil, button1Act = nil, button2 = nil, button2Act = nil, button3 = nil, button3Act = nil) -> void

Termux.pinnedNotify(title, content, id) -> void

Termux.deleteNotify(id) -> void

Termux.listNotifies() -> Array

Termux.findNotifyBy(type, value) -> String


Misc functions

Termux.dialog(type) -> Array

Termux.vibrate(duraction = 1000, force = false) -> void

Termux.vibratePattern(pattern, globalDelay = 0) -> void

Termux.volume(stream = nul, volume = nul) -> void

Pages by category:

Home

  • Examples:

Module example

TermuxAPI example

  • References:

TermuxAPI reference

Clone this wiki locally