public static final class

Media.Events

extends Object
java.lang.Object
   ↳ com.glia.androidsdk.comms.Media.Events

Class Overview

Defines media event types.

Summary

Fields
public static final MediaUpgradeOfferEvent MEDIA_UPGRADE_OFFER Triggered when the Operator offers to the Visitor the choice of upgrading the Engagement to a higher media.
public static final OperatorStateUpdateEvent OPERATOR_STATE_UPDATE Triggered when Operator media state changes or with the current state when the listener is added.
public static final VisitorStateUpdateEvent VISITOR_STATE_UPDATE Triggered when Visitor media state changes or with the current state when the listener is added.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final MediaUpgradeOfferEvent MEDIA_UPGRADE_OFFER

Triggered when the Operator offers to the Visitor the choice of upgrading the Engagement to a higher media. Until the offer has not been accepted, neither the Operator nor Visitor media is change.

For example, the event is trigger when Operator makes a request for a 2-way media. The event listener is called with a MediaUpgradeOffer instance.

public static final OperatorStateUpdateEvent OPERATOR_STATE_UPDATE

Triggered when Operator media state changes or with the current state when the listener is added.

Media state is changed when Operator starts/ends sending audio and/or video or when Visitor is transferred to another Operator. The event listener is called with a OperatorMediaState instance.

public static final VisitorStateUpdateEvent VISITOR_STATE_UPDATE

Triggered when Visitor media state changes or with the current state when the listener is added.

Media state is changed when Visitor starts/ends sending audio and/or video The event listener is called with a VisitorMediaState instance.