Package com.aurelienpierre.sioul
Class TimeReceiver
java.lang.Object
android.content.BroadcastReceiver
com.aurelienpierre.sioul.TimeReceiver
A button of the time running (TimeNote): Pause, Go on or Stop, done by
Rust's side (crates/sioul-app/src/timenote.rs) on a thread of its own, the
broadcast held open meanwhile (goAsync), Sioul's window running or not.
Rust reads first what your other devices did, so that a button a moment
behind changes nothing of it, then shows the note as it follows itself:
two buttons pressed in a row show in their order. Android gives a button's
broadcast ten seconds: past eight it is let go, and Rust's note comes when
it is done.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.content.BroadcastReceiver
BroadcastReceiver.PendingResult -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
-
Field Details
-
DEADLINE_MS
- See Also:
-
-
Constructor Details
-
TimeReceiver
public TimeReceiver()
-
-
Method Details
-
onReceive
- Specified by:
onReceivein classBroadcastReceiver
-
word
The button's action as Rust reads it: "pause", "resume", "stop"; "" for any other.
-