-
- All Implemented Interfaces:
-
com.glia.androidsdk.comms.MediaState
public interface VisitorMediaState implements MediaState
Object that represents Visitor media state. It is used as part of Media.Events.
Usage example:
engagement.getMedia().on(Media.Events.VISITOR_STATE_UPDATE, (visitorState) -> { runOnUiThread(() -> { if (visitorState.getAudio() != null) { // Visitor is sharing audio } else { // Visitor is not sharing audio } if (visitorState.getVideo() != null) { // Visitor is sharing video } else { // Visitor is not sharing video } }); });