What is MobileAccessibility.isMonoAudioEnabled(callback)?

Report
Question
9 views

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

Report Cancel

Makes an asynchronous call to native MobileAccessibility to determine if mono audio is enabled.

Parameters

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

Usage
    function isMonoAudioEnabledCallback(boolean) {
        if (boolean) {
            console.log("Mono Audio: ON");
            // Do something to improve the behavior of the application while Mono Audio is enabled.
        } else {
            console.log("Mono Audio: OFF");
        }
    }

    MobileAccessibility.isMonoAudioEnabled(isMonoAudioEnabledCallback);
Please follow and like us:

About the Author