--- title: "userPreferences.closedCaptioning()" slug: "closedcaptioning" updated: 2024-07-17T19:08:52Z published: 2024-07-17T19:08:52Z canonical: "docs.developer.comcast.com/closedcaptioning" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # userPreferences.closedCaptioning() ## 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); }); ```