-
public interface ScreenSharingProvides ability for Visitor to share their screen with an Operator. Usage examples:Notifying Visitor about screen sharing request:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumScreenSharing.StatusList of available screen sharing statuses.
public enumScreenSharing.ModeDefines the way Visitor screen is shared with an Operator.
public interfaceScreenSharing.ScreenSharingEventpublic final classScreenSharing.EventsScreen sharing events
-
Method Summary
Modifier and Type Method Description abstract <T> voidon(ScreenSharing.ScreenSharingEvent<T> event, Consumer<T> listener)This method allows registration of event listeners for ScreenSharing. abstract <T> voidoff(ScreenSharing.ScreenSharingEvent<T> event, Consumer<T> listener)This method allows the removal of event listeners from the ScreenSharing. -
-
Method Detail
-
on
abstract <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 ScreenSharing.Eventslistener- Event listener to register
-
off
abstract <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 ScreenSharing.Eventslistener- Event listener to remove
-
-
-
-