getAdDisplayContainer

open fun getAdDisplayContainer(): AdDisplayContainer

Returns the AdDisplayContainer used by this loader, or null if ads have not been requested yet.

Note: any video controls overlays registered via registerFriendlyObstruction will be unregistered automatically when the media source detaches from this instance. It is therefore necessary to re-register views each time the ads loader is reused. Alternatively, provide overlay views via the AdViewProvider when creating the media source to benefit from automatic registration.