Skip to content
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

Detection of Talkback #39

Open
jerome-micucci opened this issue May 28, 2017 · 0 comments
Open

Detection of Talkback #39

jerome-micucci opened this issue May 28, 2017 · 0 comments

Comments

@jerome-micucci
Copy link

Sorry for my basic problem : just I want to detect if Talkback is activated or not.
Then I define a global variable TalkbackFlag and I put this lines just after my init function (called by "deviceready"):

var TalkbackFlag;
function init() {
MobileAccessibility.isTalkBackRunning(
function (flag) {
alert(TalkbackFlag); // undefined
TalkbackFlag = flag;
alert(TalkbackFlag); // true or false
}
);
nextStep();
}
function nextStep() {
alert(TalkbackFlag); // always undefined :(
}

I don't understand why my function nextStep() get always an undefined value for my var TalkbackFlag ?
Thanks for explanation...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant