Package 

Class MediaUpgradeOffer


  • 
    public abstract class MediaUpgradeOffer
    
                        

    Object that represents media upgrade request that is send by the Operator to the Visitor.

    Used as part of Media.Events.

    Usage example:

     int micPermissionCode = 101; int cameraPermissionCode = 102; ConsumeractionCallback = exception -> {
        if (exception != null) {
            // action not successful, something went wrong
        } else {
            // action was done successfully
        }
    };
    
    Consumer
    • Method Summary

      Modifier and Type Method Description
      abstract void accept(Consumer<GliaException> callback) Accepts media upgrade offer.Audio and video communication is started immediately after the permissions are given.
      abstract void decline(Consumer<GliaException> callback) Declines the media upgrade offer.
      • Methods inherited from class java.lang.Object

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