w CloudExperienceHostAPI.InputSwitchControl();
            var rect = {
                height: bottom - top,
                width: right - left,
                x: left,
                y: top
            };
            inputSwitchControl.showFlyoutAsync(rect)
                .done(function () { completeDispatch(); }, function (err) { errorDispatch(err); }, function (progress) { progressDispatch(progress); });
        });
    }
    CloudExperienceHost.showInputSwitchFlyout = showInputSwitchFlyout;
    function showVolumeControlFlyout(left, top, right, bottom) {
        return new WinJS.Promise(function (completeDispatch, errorDispatch, progressDispatch) {
            var volumeFlyoutControl = new CloudExperienceHostAPI.VolumeFlyoutControl();
            let relativeWidth;
            if (CloudExperienceHost.Globalization.Language.getReadingDirection() == "ltr") {
                relativeWidth = right - left;
            }
            else {
                relativeWidth = left;
            }
            var rect = {
                height: bottom - top,
                width: relativeWidth,
                x: left,
                y: top
            };
            volumeFlyoutControl.showFlyoutAsync(rect)
                .done(function () { completeDispatch(); }, function (err) { errorDispatch(err); }, function (progress) { progressDispatch(progress); });
        });
    }
    CloudExperienceHost.showVolumeControlFlyout = showVolumeControlFlyout;
    function shouldShowEaseOfAccessControl() {
        if (!EaseOfAccessControl.hasBeenChecked) {
            // CloudExperienceHostAPI.Accessibility.EaseOfAccessControl only exists on Desktop, so wrap it
            // with try/catch and treat all exceptions as "should not show"
            try {
                var easeOfAccessControl = new CloudExperienceHostAPI.Accessibility.EaseOfAccessControl();
                EaseOfAccessControl.shouldShow = easeOfAccessControl.shouldShow;
            }
            catch (e) {
         