# CaptioningManager.CaptioningChangeListener

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#pubctors)\|[Methods](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#inhmethods)  

# CaptioningManager.CaptioningChangeListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/view/accessibility/CaptioningManager.CaptioningChangeListener "View this page in Kotlin")\|Java

`
public
static

abstract
class
CaptioningManager.CaptioningChangeListener
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-----------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.view.accessibility.CaptioningManager.CaptioningChangeListener |

<br />

*** ** * ** ***

Listener for changes in captioning properties, including enabled state and user style preferences.

## Summary

|                                                                             ### Public constructors                                                                             ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[CaptioningChangeListener](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#CaptioningChangeListener())`() ` |

|                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                        ||
|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onEnabledChanged](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#onEnabledChanged(boolean))`(boolean enabled) ` Called when the captioning enabled state changes.                                                                                                                                                                                    |
| ` void` | ` `[onFontScaleChanged](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#onFontScaleChanged(float))`(float fontScale) ` Called when the captioning font scaling factor changes.                                                                                                                                                                            |
| ` void` | ` `[onLocaleChanged](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#onLocaleChanged(java.util.Locale))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` locale) ` Called when the captioning locale changes.                                                                                                                        |
| ` void` | ` `[onSystemAudioCaptioningChanged](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#onSystemAudioCaptioningChanged(boolean))`(boolean enabled) ` Called when the system audio caption enabled state changes.                                                                                                                                              |
| ` void` | ` `[onSystemAudioCaptioningUiChanged](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#onSystemAudioCaptioningUiChanged(boolean))`(boolean enabled) ` Called when the system audio caption UI enabled state changes.                                                                                                                                       |
| ` void` | ` `[onUserStyleChanged](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptioningChangeListener#onUserStyleChanged(android.view.accessibility.CaptioningManager.CaptionStyle))`(`[CaptioningManager.CaptionStyle](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle)` userStyle) ` Called when the captioning user style changes. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### CaptioningChangeListener

```
public CaptioningChangeListener ()
```

<br />

<br />

## Public methods

### onEnabledChanged

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onEnabledChanged (boolean enabled)
```

Called when the captioning enabled state changes.

<br />

|                                   Parameters                                   ||
|-----------|---------------------------------------------------------------------|
| `enabled` | `boolean`: the user's new preferred captioning enabled state <br /> |

### onFontScaleChanged

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onFontScaleChanged (float fontScale)
```

Called when the captioning font scaling factor changes.

<br />

|                           Parameters                           ||
|-------------|---------------------------------------------------|
| `fontScale` | `float`: the preferred font scaling factor <br /> |

**See also:**

- [CaptioningManager.getFontScale()](https://developer.android.com/reference/android/view/accessibility/CaptioningManager#getFontScale())  

### onLocaleChanged

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onLocaleChanged (Locale locale)
```

Called when the captioning locale changes.

<br />

|                                      Parameters                                      ||
|----------|----------------------------------------------------------------------------|
| `locale` | `Locale`: the preferred captioning locale, or`null`if not specified <br /> |

**See also:**

- [CaptioningManager.getLocale()](https://developer.android.com/reference/android/view/accessibility/CaptioningManager#getLocale())  

### onSystemAudioCaptioningChanged

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onSystemAudioCaptioningChanged (boolean enabled)
```

Called when the system audio caption enabled state changes.

<br />

|                             Parameters                              ||
|-----------|----------------------------------------------------------|
| `enabled` | `boolean`: the system audio caption enabled state <br /> |

### onSystemAudioCaptioningUiChanged

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onSystemAudioCaptioningUiChanged (boolean enabled)
```

Called when the system audio caption UI enabled state changes.

<br />

|                               Parameters                               ||
|-----------|-------------------------------------------------------------|
| `enabled` | `boolean`: the system audio caption UI enabled state <br /> |

### onUserStyleChanged

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void onUserStyleChanged (CaptioningManager.CaptionStyle userStyle)
```

Called when the captioning user style changes.

<br />

|                                                    Parameters                                                    ||
|-------------|-----------------------------------------------------------------------------------------------------|
| `userStyle` | `CaptioningManager.CaptionStyle`: the user's new preferred style This value cannot be`null`. <br /> |

**See also:**

- [CaptioningManager.getUserStyle()](https://developer.android.com/reference/android/view/accessibility/CaptioningManager#getUserStyle())