# Window.OnRestrictedCaptionAreaChangedListener

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

# Window.OnRestrictedCaptionAreaChangedListener

*** ** * ** ***

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


`
public
static


interface
Window.OnRestrictedCaptionAreaChangedListener
`


`


`

|------------------------------------------------------------|
| android.view.Window.OnRestrictedCaptionAreaChangedListener |

<br />

*** ** * ** ***

Callback for clients that want to be aware of where caption draws content.

## Summary

|                                                                                                                                                                     ### Public methods                                                                                                                                                                     ||
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onRestrictedCaptionAreaChanged](https://developer.android.com/reference/android/view/Window.OnRestrictedCaptionAreaChangedListener#onRestrictedCaptionAreaChanged(android.graphics.Rect))`(`[Rect](https://developer.android.com/reference/android/graphics/Rect)` rect) ` Called when the area where caption draws content changes. |

## Public methods

### onRestrictedCaptionAreaChanged

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

```
public abstract void onRestrictedCaptionAreaChanged (Rect rect)
```

Called when the area where caption draws content changes.

<br />

|                                           Parameters                                           ||
|--------|----------------------------------------------------------------------------------------|
| `rect` | `Rect`: The area where caption content is positioned, relative to the top view. <br /> |