Package 

Class CallViewModel


  • 
    public class CallViewModel
    extends ViewModel
                        

    The CallViewModel is a light wrapper over

    • call

    • call.state

    • call.camera/microphone/speaker

    It's main purpose is to

    • Add awareness to the UI lifecycle. It makes sure we cleanup video state etc when you leave a call

    • Helpers for picture in picture

    • Helpers for fullscreen mode

    It also handles some UI state

    • Opening/closing the participant menu

    • Constructor Summary

      Constructors 
      Constructor Description
      CallViewModel()
    • Method Summary

      Modifier and Type Method Description
      final StateFlow<Boolean> getIsInPictureInPicture()
      final Unit onPictureInPictureModeChanged(Boolean inPictureInPictureMode)
      • Methods inherited from class io.getstream.video.android.xml.viewmodel.CallViewModel

        addCloseable, addCloseable, addCloseable, getCloseable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait