You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So from what I can tell, we have several API-like interfaces in Xdrip atm:
SendXdripBroadcast class - sends intent bundles from VehicleMode.java and BroadcastGlucose.java to another app, including things like collector status, glucose values, noise level, battery level, etc.
"Identify receiver" field supports multiple package names separated by spaces.
NSClientReceiver class - handles incoming intents. Supports 3 different actions, corresponding to the first 3 ON/OFF switches in the photo. ExternalStatusBroadcastReceiver class - Allows external apps to set the status line string via intent (4th switch in photo). It also acts as an (unofficial) way to send xDrip the temp-basal rate (xDrip attempts to parse it from the string).
I'll offer to rework/streamline the preferences hierarchy so they're all more user-friendly, but if we can consolidate down to one "intent broadcast" service, that would be much less chaotic.
I'll offer to rework/streamline the preferences hierarchy so they're all more user-friendly, but if we can consolidate down to one "intent broadcast" service, that would be much less chaotic.
@Lupum1001 Thanks for investigating this. Having a centralized API would be a great step forward. We will discuss this further in our internal dev group before we proceed here.
We should start writing unit tests for a potential new API. These tests can be generalized from the existing APIs and can help verify the implementation of #2004.
So from what I can tell, we have several API-like interfaces in Xdrip atm:
VehicleMode.java
andBroadcastGlucose.java
to another app, including things like collector status, glucose values, noise level, battery level, etc."Identify receiver" field supports multiple package names separated by spaces.
ExternalStatusBroadcastReceiver class - Allows external apps to set the status line string via intent (4th switch in photo). It also acts as an (unofficial) way to send xDrip the temp-basal rate (xDrip attempts to parse it from the string).
This constructor method appears to enumerate the implemented urls/modules
Examples:
I'll offer to rework/streamline the preferences hierarchy so they're all more user-friendly, but if we can consolidate down to one "intent broadcast" service, that would be much less chaotic.
Originally posted by @Lupum1001 in #2004 (comment)
The text was updated successfully, but these errors were encountered: