Class TimeNote

java.lang.Object
com.aurelienpierre.sioul.TimeNote

final class TimeNote extends Object
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
    Modifier and Type
    Field
    Description
    private static final String
     
    private static final int
    The one note, by its number alone: the doses' reminders are known by their key and 1.
    (package private) static final String
     
    (package private) static final String
     
    (package private) static final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static Notification.Action
    button(Context context, String action, String label)
    A button: its broadcast to TimeReceiver, by no other app.
    (package private) static String
    A button's action ("pause", "resume", "stop") done by Rust: the note it then showed, "" when none is left.
    private static PendingIntent
    open(Context context)
    A tap: Sioul, as by its icon.
    (package private) static void
    show(Context context, String json)
    Rust's note, JSON as timenote.rs writes it: put up, or changed in place; "" takes it away.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait