#notifications #android #termux

termux-notification

Display a system notification by termux-notification

4 releases

0.1.3 Feb 9, 2024
0.1.2 Feb 9, 2024
0.1.1 Feb 9, 2024
0.1.0 Feb 9, 2024

#401 in Command-line interface

MIT/Apache

17KB
331 lines

termux-notification

Rust lib with typed termux-notification command API to display a system notification.


lib.rs:

Display a system notification.

use std::io;

use termux_notification::TermuxNotification;

fn main() -> io::Result<()> {
  TermuxNotification::new()
    .title("Foo")
    .content("Bar")
    .show()?;
  Ok(())
}

Feature flags

  • callbacks

No runtime deps

Features