Closed pcanas closed 2 years ago
Create an instance of SettingsInfo
, place it in a bundle under key KEY_SETTINGS_INFO
then, send the bundle in a message with action code MSG_SET_SETTINGS_INFO
, for example:
public void sendSettings() {
SettingsInfo info = new SettingsInfo();
info.autoConnect = ...
Message msg = Message.obtain(null, MobileApi. MSG_SET_SETTINGS_INFO);
Bundle data = new Bundle();
data.putParcelable(MobileApi.KEY_PATIENT_INFO, info);
msg.setData(data);
mService.send(msg);
}
Only the settings listed in the class can be changed. These were selected because they can control the user workflow. If you wish control over more settings, you can make a request here + explanation why they are needed (this helps us evaluate requests) thanks!
note our next release will solve: https://github.com/clariusdev/mobileapi/issues/18
Thanks for your help! @clariusk is there an expected timeline for the next release?
please see the latest app pilot with latest code here to get fix for reported issue
Was it released in the recent 9.3 version?
yes, 9.3 has this fixed now.
From the
me.clarius.mobileapi.SettingsInfo
class, it seems that we can modify the Clarius App settings at launch time. I was wondering: