Stay organized with collections
Save and categorize content based on your preferences.
OnRestrictedCaptionAreaChangedListener
interface OnRestrictedCaptionAreaChangedListener
Callback for clients that want to be aware of where caption draws content.
Summary
Public methods |
abstract Unit |
Called when the area where caption draws content changes.
|
Public methods
onRestrictedCaptionAreaChanged
abstract fun onRestrictedCaptionAreaChanged(rect: Rect!): Unit
Called when the area where caption draws content changes.
Parameters |
rect |
Rect!: The area where caption content is positioned, relative to the top view. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Window.OnRestrictedCaptionAreaChangedListener\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnRestrictedCaptionAreaChangedListener\n======================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/Window.OnRestrictedCaptionAreaChangedListener \"View this page in Java\") \n\n```\ninterface OnRestrictedCaptionAreaChangedListener\n```\n\n|-----------------------------------------------------------------|\n| [android.view.Window.OnRestrictedCaptionAreaChangedListener](#) |\n\nCallback for clients that want to be aware of where caption draws content.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRestrictedCaptionAreaChanged](#onRestrictedCaptionAreaChanged(android.graphics.Rect))`(`rect:` `[Rect](../graphics/Rect.html#)!`)` Called when the area where caption draws content changes. |\n\nPublic methods\n--------------\n\n### onRestrictedCaptionAreaChanged\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onRestrictedCaptionAreaChanged(rect: Rect!): Unit\n```\n\nCalled when the area where caption draws content changes.\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------------------------------|\n| `rect` | [Rect](../graphics/Rect.html#)!: The area where caption content is positioned, relative to the top view. |"]]