clariusdev / mobileapi

Android API Allowing IPC with the Clarius App
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

How to send customized settings to Clarius App #21

Closed pcanas closed 2 years ago

pcanas commented 2 years ago

From the me.clarius.mobileapi.SettingsInfo class, it seems that we can modify the Clarius App settings at launch time. I was wondering:

  1. Could you provide an example of how this class is being used to launch the Clarius App with a customized setting?
  2. Are there any other parameters that are customizable besides the 7 defined?
julien-l commented 2 years ago
  1. 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);
    }
  2. 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!

clariusk commented 2 years ago

note our next release will solve: https://github.com/clariusdev/mobileapi/issues/18

pcanas commented 2 years ago

Thanks for your help! @clariusk is there an expected timeline for the next release?

clariusk commented 2 years ago

please see the latest app pilot with latest code here to get fix for reported issue

pcanas commented 2 years ago

Was it released in the recent 9.3 version?

clariusk commented 2 years ago

yes, 9.3 has this fixed now.