-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS API to know if answer is displaying or question #8199
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8199 +/- ##
============================================
- Coverage 37.04% 37.02% -0.03%
Complexity 3776 3776
============================================
Files 352 352
Lines 35739 35740 +1
Branches 4732 4732
============================================
- Hits 13239 13232 -7
- Misses 20992 21001 +9
+ Partials 1508 1507 -1 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me - thanks @infinyte7 - and thank you (again) for your infinite patience on reviewing the JS add-on PR.
* isDisplayingAnswer
Hi there! Just a friendly notice (one per person for PRs merged in March, regardless of PR quantity) that we try to process OpenCollective payments monthly - it's time for March 2021 submissions If you are interested in compensation for this work, the process with details is here: Thanks! |
Pull Request template
Purpose / Description
Describe the problem or feature and motivation
It will be easier to know when question is displaying and answer using js api. I am implementing addon sometime card content only need to added to front side and some time to back side. So, there are no api to know the side of card.
Fixes
Fixes Link to the issues.
Approach
JavascriptInterface
AbstractFlashcardViewer::isDisplayingAnswer()
How Has This Been Tested?
Return value:
true
orfalse
Learning (optional, can help others)
https://developer.android.com/reference/android/webkit/JavascriptInterface
Checklist
Please, go through these checks before submitting the PR.
if
statements)