Stay organized with collections
Save and categorize content based on your preferences.
Window.OnRestrictedCaptionAreaChangedListener
public
static
interface
Window.OnRestrictedCaptionAreaChangedListener
android.view.Window.OnRestrictedCaptionAreaChangedListener
|
Callback for clients that want to be aware of where caption draws content.
Summary
Public methods
onRestrictedCaptionAreaChanged
public abstract void onRestrictedCaptionAreaChanged (Rect rect)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Window.OnRestrictedCaptionAreaChangedListener\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWindow.OnRestrictedCaptionAreaChangedListener\n=============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/Window.OnRestrictedCaptionAreaChangedListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWindow.OnRestrictedCaptionAreaChangedListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------|\n| android.view.Window.OnRestrictedCaptionAreaChangedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback for clients that want to be aware of where caption draws content.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onRestrictedCaptionAreaChanged](/reference/android/view/Window.OnRestrictedCaptionAreaChangedListener#onRestrictedCaptionAreaChanged(android.graphics.Rect))`(`[Rect](/reference/android/graphics/Rect)` rect) ` Called when the area where caption draws content changes. |\n\nPublic methods\n--------------\n\n### onRestrictedCaptionAreaChanged\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRestrictedCaptionAreaChanged (Rect rect)\n```\n\nCalled when the area where caption draws content changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------------|\n| `rect` | `Rect`: The area where caption content is positioned, relative to the top view. \u003cbr /\u003e |"]]