Package com.aurelienpierre.sioul
Class DayNotes
java.lang.Object
com.aurelienpierre.sioul.DayNotes
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 ClassesModifier and TypeClassDescription(package private) static final classA button: its words, and what it opens (ReminderOpener.opens). -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intAndroid shows three buttons at most.(package private) static final StringThe "End of the day" channel.(package private) static final intA notice is known by its key (its tag: "day:work:2026-10-14") and this number. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static List<DayNotes.Button> buttons(JSONObject said) 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 voidA notice pressed, taken away from the shade: a button's press leaves it there by itself.private static PendingIntentopen(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 intrequestCode(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 voidRust'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`.
-
Field Details
-
CHANNEL
The "End of the day" channel.- See Also:
-
NOTE
A notice is known by its key (its tag: "day:work:2026-10-14") and this number.- See Also:
-
AT_MOST
Android shows three buttons at most.- See Also:
-
-
Constructor Details
-
DayNotes
private DayNotes()
-
-
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
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 keyindex- the button's place, -1 for the tap on the notice- Returns:
- the request code
-
show
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'sjson- Rust's words
-
open
A press: Sioul brought up on what the button offers (ReminderOpener), this notice named to go. -
dismiss
A notice pressed, taken away from the shade: a button's press leaves it there by itself.- Parameters:
context- any of Sioul'snote- the notice's key; nothing when null or empty
-