public interface UnbluCoBrowsingModuleApi
Modifier and Type | Method and Description |
---|---|
void |
addPrivateView(int id)
Adds the view with the given ID to the set of private views.
|
boolean |
isMobileCoBrowsingActive()
Checks if mobile co-browsing is active
|
void |
removePrivateArea(java.lang.String id)
Removes the private area for the given id which was previously added via
setPrivateArea(String, int, int, int, int) . |
void |
removePrivateView(int id)
Removes the view with the given ID from the set of private views.
|
PrivateArea |
setPrivateArea(java.lang.String id,
int x,
int y,
int width,
int height)
Adds or updates a private area with the given size and position.
|
void |
setScreenCapturer(IScreenCapturer screenCapturer)
Provide an instance of a class implementing
IScreenCapturer |
void |
stopMobileCoBrowsing(IUnbluApiSuccessVoidCallback success,
IUnbluApiStopMobileCoBrowsingExceptionCallback failure)
Stops mobile co-browsing.
If co-browsing was not running, the success callback is also triggered. |
void addPrivateView(int id)
Private views are only visible on the mobile device and won't be transmitted when co-browsing. The views will be covered before they are transmitted and therefore won't be visible on the agent side.
Note:
Be aware that each private view will need extra performance while capturing the UI so be cautious with the amount of private views you are adding. The best practice is to dynamically make views private, when they are displayed in the app UI and remove them from the private view list when they are not visible anymore.
Multiple calls with the same ID do not have any effect.
id
- ID of the view that should be made private.void removePrivateView(int id)
Multiple calls with the same ID do not have any effect.
id
- ID of the view that should removed from the private views.addPrivateView(int)
PrivateArea setPrivateArea(java.lang.String id, int x, int y, int width, int height)
Private areas are only visible on the mobile device and won't be transmitted when co-browsing. The area will be covered before the captured screen is transmitted and therefore won't be visible on the agent side.
To update a private area either call this function with the same id again, or modify the returned PrivateArea
.
Changes to the returned private area or using this function will directly be applied, even if co-browsing is already active.
Note:
Try to reduce the number of private areas to a minimum as this will impact performance during co-browsing.
id
- The unique id of the private area which can be used to update the values or to remove the private area againx
- The x position on the screen for the private areay
- The y position on the screen for the private areawidth
- The width of the private areaheight
- The height of the private areaPrivateArea
which can be updated instead of using this API functionremovePrivateArea(String)
void removePrivateArea(java.lang.String id)
setPrivateArea(String, int, int, int, int)
.
Multiple calls with the id do not have any effect.
id
- of the area that should removed from the private areas.setPrivateArea(String, int, int, int, int)
boolean isMobileCoBrowsingActive()
UnsupportedCollaborationServerVersionException
- if the used collaboration server is not of a version newer than 5.17 or 6.3void stopMobileCoBrowsing(@Nullable IUnbluApiSuccessVoidCallback success, @Nullable IUnbluApiStopMobileCoBrowsingExceptionCallback failure)
success
- if mobile co-browsing was successfully stopped or if it was not activefailure
- if stopping mobile co-browsing failedUnsupportedCollaborationServerVersionException
- if the used collaboration server is not of a version newer than 5.17 or 6.3void setScreenCapturer(IScreenCapturer screenCapturer)
IScreenCapturer