Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 24

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

abstract void onRestrictedCaptionAreaChanged(Rect rect)

Called when the area where caption draws content changes.

Public methods

onRestrictedCaptionAreaChanged

added in API level 24
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.