How can I enable sync with on{x}

152 views Asked by At

Is there a way to turn on/off Sync with on{x} scripting?

1

There are 1 answers

0
MalcolmOcean On BEST ANSWER

According to the on{x} documentation, no.

You can turn on/off mobile data usage, using mobileDataEnabled(get; set;) but that's probably not what you're looking for.

Actually, on second thought, you could write a native Android app that would receive a custom intent and toggle the sync setting, and then call that from on{x} using launch(String appName, Object params, Object callback). See the applications section of the on{x} docs for more on this.

...and general sync settings "auto-sync" checkbox programtically may help you with making such a native app.