-
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
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<Boolean>isInPictureInPicture
-
Constructor Summary
Constructors Constructor Description CallViewModel()
-
Method Summary
Modifier and Type Method Description final StateFlow<Boolean>getIsInPictureInPicture()final UnitonPictureInPictureModeChanged(Boolean inPictureInPictureMode)-
-
Method Detail
-
getIsInPictureInPicture
final StateFlow<Boolean> getIsInPictureInPicture()
-
onPictureInPictureModeChanged
final Unit onPictureInPictureModeChanged(Boolean inPictureInPictureMode)
-
-
-
-