ViewVisibility

class ViewVisibility(view: View) : VideoSinkVisibility

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

ViewVisibility
Link copied to clipboard
fun ViewVisibility(view: View)

Types

Notifier
Link copied to clipboard
interface Notifier

Functions

addObserver
Link copied to clipboard
open fun addObserver(p0: Observer)
clearChanged
Link copied to clipboard
open fun clearChanged()
close
Link copied to clipboard
open override fun close()
Called when this object is no longer needed and should clean up any unused resources.
countObservers
Link copied to clipboard
open fun countObservers(): Int
deleteObserver
Link copied to clipboard
open fun deleteObserver(p0: Observer)
deleteObservers
Link copied to clipboard
open fun deleteObservers()
hasChanged
Link copied to clipboard
open fun hasChanged(): Boolean
isVisible
Link copied to clipboard
open override fun isVisible(): Boolean
notifyChanged
Link copied to clipboard
fun notifyChanged()
This should be called whenever the visibility or size has changed.
notifyObservers
Link copied to clipboard
open fun notifyObservers()
open fun notifyObservers(p0: Any)
recalculate
Link copied to clipboard
fun recalculate()
setChanged
Link copied to clipboard
open fun setChanged()
size
Link copied to clipboard
open override fun size(): Track.Dimensions

Sources

SDK source
Link copied to clipboard