ComposeVisibility

class ComposeVisibility : VideoSinkVisibility

A VideoSinkVisibility for compose views.

To use, pass an onGloballyPositioned modifier your composable like so:

modifier = Modifier.onGloballyPositioned { videoSinkVisibility.onGloballyPositioned(it) }

Constructors

ComposeVisibility
Link copied to clipboard
fun ComposeVisibility()

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 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)
onDispose
Link copied to clipboard
fun onDispose()
onGloballyPositioned
Link copied to clipboard
fun onGloballyPositioned(layoutCoordinates: LayoutCoordinates)
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