It would be amazing if all UI functions can be accessable through the JS API. By exposing all, a complete UI overhaul e.g. for better accessibility (bigger buttons) would be possible. Many UI functions are exposed, e. g. starting the tag chooser, burying, setting due date et al.; others are not, e.g. entering Edit-Mode.
I will implement this if someone helps me a little. I am able to modify the code of the JS API, but AnkiDroid’s other code is just too complex for me.
I need help with this:
- How can I programmatically “press” the Edit button?
- How do I programmatically add a tag to the current note?
- It would be amazing to be able to change a field of the current card.
- Changing the deck and also setting the due date.
- Setting that a card should be displayed again in one hour or two hours, even if these times are not present on the displayed answer buttons.
Sorry for using funny terms, I am not versed in Anki’s terminology, I am grateful for any corrections.
Not relevant any more / wrong , see comments below:
- I am also very interested in programmatically “answering” (like tapping 1h, 1d, etc.) a card and at the same time setting the due date to a different date than the answer button has. The current API functions cannot be called after one another because the first one will continue to the next card. Also changing the deck at the same time would be very helpful.~~
