Package 

Class ScreenSharingManager

  • All Implemented Interfaces:
    com.glia.androidsdk.screensharing.ScreenSharing

    
    public class ScreenSharingManager
     implements ScreenSharing
                        

    Provides ability for Visitor to share their screen with an Operator. Usage examples:Notifying Visitor about screen sharing request:

    • Method Detail

      • on

         <T> void on(ScreenSharing.ScreenSharingEvent<T> event, Consumer<T> listener)

        This method allows registration of event listeners for ScreenSharing.

        If a listener is added while the ScreenSharing is processing an event,it is not triggered with the current event.

        If multiple identical listeners are registered on the same event typethe duplicate instances are discarded. They do not cause the listenerto be called twice and do not need to be removed with the removeEventListenermethod.

        Parameters:
        event - One of ScreenSharingManager.Events
        listener - Event listener to register
      • off

         <T> void off(ScreenSharing.ScreenSharingEvent<T> event, Consumer<T> listener)

        This method allows the removal of event listeners from the ScreenSharing.

        If an event listener is removed while the ScreenSharing is processing an event,it is not triggered with the current event.

        Calling {@code off} with arguments which do not identify any currently registeredlistener has no effect.

        Parameters:
        event - One of ScreenSharingManager.Events
        listener - Event listener to remove