userPreferences.closedCaptioning()
Retrieves the closeCaptioning user preferences.
Signature:
$badger.userPreferences().closedCaptioning();
Parameters:
None.
Return Values:
Returns a promise that is called with the closedCaptioning settings.
closeCaptioningSettings object:
enabled (boolean)
: true
if CC is enabled, false
otherwise
Usage Example:
$badger.userPreferences().closedCaptioning()
.success(ccSettings => {
console.log(ccSettings.enabled);
});