Closed michaelcfine closed 2 years ago
To test,
The app code I used to test looks like:
let value, onOff; console.log('--------------------------closed1'); value = false; onOff = ( value ? 'on' : 'off' ); console.log(`Calling Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions...`); data = await ClosedCaptions.enabled(value); console.log(`Used Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`); console.log(`Calling SDK's ClosedCaptions.enabled()...`); data = await ClosedCaptions.enabled(); console.log(`Manage SDK's ClosedCaptions.enabled() returned: ${data}`); console.log(`Calling Core SDK's Accessibility.closedCaptionsSettings()...`); data = await Accessibility.closedCaptionsSettings(); console.log(`Core SDK's Accessibility.closedCaptionsSettings() returned: ${JSON.stringify(data)}`); console.log('--------------------------closed2'); value = true; onOff = ( value ? 'on' : 'off' ); console.log(`Calling Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`); data = await ClosedCaptions.enabled(value); console.log(`Used Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`); console.log(`Calling SDK's ClosedCaptions.enabled()...`); data = await ClosedCaptions.enabled(); console.log(`Manage SDK's ClosedCaptions.enabled() returned: ${data}`); console.log(`Calling Core SDK's Accessibility.closedCaptionsSettings()...`); data = await Accessibility.closedCaptionsSettings(); console.log(`Core SDK's Accessibility.closedCaptionsSettings() returned: ${JSON.stringify(data)}`); console.log('--------------------------closed3');
let value, onOff;
console.log('--------------------------closed1'); value = false; onOff = ( value ? 'on' : 'off' ); console.log(`Calling Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions...`); data = await ClosedCaptions.enabled(value); console.log(`Used Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`); console.log(`Calling SDK's ClosedCaptions.enabled()...`); data = await ClosedCaptions.enabled(); console.log(`Manage SDK's ClosedCaptions.enabled() returned: ${data}`); console.log(`Calling Core SDK's Accessibility.closedCaptionsSettings()...`); data = await Accessibility.closedCaptionsSettings(); console.log(`Core SDK's Accessibility.closedCaptionsSettings() returned: ${JSON.stringify(data)}`); console.log('--------------------------closed2'); value = true; onOff = ( value ? 'on' : 'off' ); console.log(`Calling Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`); data = await ClosedCaptions.enabled(value); console.log(`Used Manage SDK's ClosedCaptions.enabled(${value}) to turn ${onOff} closed captions`); console.log(`Calling SDK's ClosedCaptions.enabled()...`); data = await ClosedCaptions.enabled(); console.log(`Manage SDK's ClosedCaptions.enabled() returned: ${data}`); console.log(`Calling Core SDK's Accessibility.closedCaptionsSettings()...`); data = await Accessibility.closedCaptionsSettings(); console.log(`Core SDK's Accessibility.closedCaptionsSettings() returned: ${JSON.stringify(data)}`); console.log('--------------------------closed3');
To test,
The app code I used to test looks like: