Package com.aurelienpierre.sioul
Class TimeNote
java.lang.Object
com.aurelienpierre.sioul.TimeNote
The time running, in Android's notifications while a focus session runs
(docs/android.md, "The time running"): its task, a chronometer counting
from its start, the time paused left out, and Pause (Go on, while paused)
and Stop. Rust says what to show (crates/sioul-app/src/timenote.rs, through
android/main.cpp) whenever the session changes, here or on another
device; a button reaches Rust through TimeReceiver, Sioul's window running
or not; a tap opens Sioul. An ongoing notification the app posts stays
while Sioul is away, or stopped by Android: no foreground service, which
would keep Sioul running all day for a notification that needs nothing
running.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Notification.ActionA button: its broadcast to TimeReceiver, by no other app.(package private) static StringnativeAction(String action) A button's action ("pause", "resume", "stop") done by Rust: the note it then showed, "" when none is left.private static PendingIntentA tap: Sioul, as by its icon.(package private) static voidRust's note, JSON as timenote.rs writes it: put up, or changed in place; "" takes it away.
-
Field Details
-
PAUSE
- See Also:
-
RESUME
- See Also:
-
STOP
- See Also:
-
CHANNEL
- See Also:
-
NOTE
The one note, by its number alone: the doses' reminders are known by their key and 1.- See Also:
-
-
Constructor Details
-
TimeNote
private TimeNote()
-
-
Method Details
-
nativeAction
A button's action ("pause", "resume", "stop") done by Rust: the note it then showed, "" when none is left. -
show
Rust's note, JSON as timenote.rs writes it: put up, or changed in place; "" takes it away. Any thread. -
button
A button: its broadcast to TimeReceiver, by no other app. -
open
A tap: Sioul, as by its icon.
-