Package com.aurelienpierre.sioul
Class PhoneMessages
java.lang.Object
com.aurelienpierre.sioul.PhoneMessages
What the listener says of a notification for your computers, beside what
decides its time (AppNotes, describe; crates/sioul-core/src/phonemsgs.rs,
`Extra`): whether its app keeps it secret, when it was sent and posted,
whether it shows a picture; and of each message, when it was sent and
whether it is a picture. Never the picture itself: its address stays on
the phone. Rust decides what of it, if anything, leaves the phone, and
writes it (docs/android.md, "Messages on your computers").
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static JSONObjectmessage(JSONObject one, long at, String type) A message's own: when it was sent, and whether its data is a picture, by its type.(package private) static JSONObjectnotice(JSONObject out, int visibility, long when, long posted, boolean picture) A notification's own: Notification.visibility (-1 secret), Notification.when, its post time, a picture of its own.(package private) static StringThe phone's default SMS app, for the tab (StepService.call(android.content.Context, java.lang.String, java.lang.String), "sms-app"); "" when none, or no telephony.
-
Constructor Details
-
PhoneMessages
private PhoneMessages()
-
-
Method Details
-
notice
static JSONObject notice(JSONObject out, int visibility, long when, long posted, boolean picture) throws JSONException A notification's own: Notification.visibility (-1 secret), Notification.when, its post time, a picture of its own.- Throws:
JSONException
-
smsApp
The phone's default SMS app, for the tab (StepService.call(android.content.Context, java.lang.String, java.lang.String), "sms-app"); "" when none, or no telephony. -
message
A message's own: when it was sent, and whether its data is a picture, by its type.- Throws:
JSONException
-