Class DayNotes

java.lang.Object
com.aurelienpierre.sioul.DayNotes

final class DayNotes extends Object
The end of work's notice and the night's (docs/reviews.md), as on a computer: "Work hours are over" with Close the work day; as the night's wind-down begins, its own notice with Close the whole day while that night's review is to give, and Options…. Rust decides what and when, at their alarms, given with the events' (crates/sioul-app/src/eventalarms.rs, reviews.rs, health.rs), and shows them here. Each button opens Sioul on its sheet or its question (ReminderOpener), the notice then taken away; a tap on the notice is its first button. The "End of the day" channel, at low importance: no sound, no banner, yours to change in Android's settings, made as Sioul's other quiet ones (Channels.quiet). Never said from words kept with the list: Rust alone says them, or nothing (EventAlarms.fallback).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static final class 
    A button: its words, and what it opens (ReminderOpener.opens).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final int
    Android shows three buttons at most.
    (package private) static final String
    The "End of the day" channel.
    (package private) static final int
    A notice is known by its key (its tag: "day:work:2026-10-14") and this number.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static List<DayNotes.Button>
    The buttons Rust gave ({buttons: [{label, kind, key}]}), as Android shows them: in their order, three at most, each with its words and opening what a notice of Sioul's may open (ReminderOpener.opens).
    (package private) static void
    dismiss(Context context, String note)
    A notice pressed, taken away from the shade: a button's press leaves it there by itself.
    private static PendingIntent
    open(Context context, String note, int index, DayNotes.Button button)
    A press: Sioul brought up on what the button offers (ReminderOpener), this notice named to go.
    (package private) static int
    requestCode(String note, int index)
    Each press's own request code, so that Android keeps their intents apart: the tap on the notice (`index` -1) and each button.
    (package private) static void
    show(Context context, String json)
    Rust's notice (eventalarms.rs, `day_note`): JSON {key, title, body, buttons, until (Unix ms), words {day}}, shown in its place by its key; gone from the shade at `until`.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • buttons

      The buttons Rust gave ({buttons: [{label, kind, key}]}), as Android shows them: in their order, three at most, each with its words and opening what a notice of Sioul's may open (ReminderOpener.opens). Pure, checked on a JVM (android/jvm-checks/DayNotesCheck.java).
      Parameters:
      said - Rust's notice, or null
      Returns:
      the buttons to show, perhaps none
    • requestCode

      static int requestCode(String note, int index)
      Each press's own request code, so that Android keeps their intents apart: the tap on the notice (`index` -1) and each button.
      Parameters:
      note - the notice's key
      index - the button's place, -1 for the tap on the notice
      Returns:
      the request code
    • show

      static void show(Context context, String json)
      Rust's notice (eventalarms.rs, `day_note`): JSON {key, title, body, buttons, until (Unix ms), words {day}}, shown in its place by its key; gone from the shade at `until`. Any thread.
      Parameters:
      context - the application's
      json - Rust's words
    • open

      private static PendingIntent open(Context context, String note, int index, DayNotes.Button button)
      A press: Sioul brought up on what the button offers (ReminderOpener), this notice named to go.
    • dismiss

      static void dismiss(Context context, String note)
      A notice pressed, taken away from the shade: a button's press leaves it there by itself.
      Parameters:
      context - any of Sioul's
      note - the notice's key; nothing when null or empty