ViewVisibility

A VideoSinkVisibility for views. If using a custom view other than the sdk provided renderers, you must implement Notifier, override View.onVisibilityChanged and call through to recalculate, or the visibility may not be calculated correctly.

Constructors

Link copied to clipboard
constructor(view: View)

Types

Link copied to clipboard
interface Notifier

Declares that this View will override View.onVisibilityChanged and call through to recalculate, partaking in the VideoSinkVisibility system.

Functions

Link copied to clipboard
open fun addObserver(p0: Observer)
Link copied to clipboard
open override fun close()

Called when this object is no longer needed and should clean up any unused resources.

Link copied to clipboard
open fun countObservers(): Int
Link copied to clipboard
open fun deleteObserver(p0: Observer)
Link copied to clipboard
open fun deleteObservers()
Link copied to clipboard
open fun hasChanged(): Boolean
Link copied to clipboard
open override fun isVisible(): Boolean
Link copied to clipboard

This should be called whenever the visibility or size has changed.

Link copied to clipboard
open fun notifyObservers()
open fun notifyObservers(p0: Any)
Link copied to clipboard

Recalculates whether this view's visibility has changed, and notifies observers if it has.

Link copied to clipboard
open override fun size(): Track.Dimensions