What is MobileAccessibility.isSpeakSelectionEnabled(callback)?

Report
Question
10 views

Please explain why do you think this question should be reported?

Report Cancel

Makes an asynchronous call to native MobileAccessibility to determine if speak selection is enabled.

Parameters

callback (Function) A callback method to receive the boolean result asynchronously from the native MobileAccessibility plugin.

Usage
    function isSpeakSelectionEnabledCallback(boolean) {
        if (boolean) {
            console.log("Speak Selection: ON");
            // Do something to improve the behavior of the application when Speak Selection is enabled.
        } else {
            console.log("Speak Selection: OFF");
        }
    }

    MobileAccessibility.isSpeakSelectionEnabled(isSpeakSelectionEnabledCallback);
Please follow and like us:

About the Author