-
public final class ViewVisibility extends 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceViewVisibility.NotifierDeclares that this View will override View.onVisibilityChanged and call through to recalculate, partaking in the VideoSinkVisibility system.
-
Constructor Summary
Constructors Constructor Description ViewVisibility(View view)
-
Method Summary
Modifier and Type Method Description final Unitrecalculate()Recalculates whether this view's visibility has changed, and notifies observers if it has. BooleanisVisible()Track.Dimensionssize()Unitclose()Called when this object is no longer needed and should clean up any unused resources. -
Methods inherited from class io.livekit.android.room.track.video.ViewVisibility
notifyChanged -
Methods inherited from class io.livekit.android.room.track.video.VideoSinkVisibility
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ViewVisibility
ViewVisibility(View view)
-
-
Method Detail
-
recalculate
final Unit recalculate()
Recalculates whether this view's visibility has changed, and notifies observers if it has.
-
size
Track.Dimensions size()
-
-
-
-