-
- 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:
-
-
Constructor Summary
Constructors Constructor Description ScreenSharingManager(EngagementTracker engagementTracker, GliaEnvironment env, Observable<Triple<Integer, Integer, Intent>> activityResults, Observable<String> annotations, Observable<AppLifecycle.AppState> appLifeState)
-
Method Summary
Modifier and Type Method Description <T> voidon(ScreenSharing.ScreenSharingEvent<T> event, Consumer<T> listener)This method allows registration of event listeners for ScreenSharing. <T> voidoff(ScreenSharing.ScreenSharingEvent<T> event, Consumer<T> listener)This method allows the removal of event listeners from the ScreenSharing. -
-
Constructor Detail
-
ScreenSharingManager
ScreenSharingManager(EngagementTracker engagementTracker, GliaEnvironment env, Observable<Triple<Integer, Integer, Intent>> activityResults, Observable<String> annotations, Observable<AppLifecycle.AppState> appLifeState)
-
-
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.Eventslistener- 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.Eventslistener- Event listener to remove
-
-
-
-