public interface

ScreenSharing

com.glia.androidsdk.screensharing.ScreenSharing

Class Overview

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

Summary

Nested Classes
class ScreenSharing.Events Screen sharing events  
enum ScreenSharing.Mode Defines the way Visitor screen is shared with an Operator. 
interface ScreenSharing.ScreenSharingEvent<T>  
enum ScreenSharing.Status List of available screen sharing statuses. 
Public Methods
abstract <T> void off(ScreenSharingEvent<T> event, Consumer<T> listener)
This method allows the removal of event listeners from the ScreenSharing.
abstract <T> void on(ScreenSharingEvent<T> event, Consumer<T> listener)
This method allows registration of event listeners for ScreenSharing.

Public Methods

public abstract void off (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 off with arguments which do not identify any currently registered listener has no effect.

Parameters
event One of ScreenSharing.Events
listener Event listener to remove

public abstract void on (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 type the duplicate instances are discarded. They do not cause the listener to be called twice and do not need to be removed with the removeEventListener method.

Parameters
event One of ScreenSharing.Events
listener Event listener to register