Interface DocumentCoBrowsingModule
- All Superinterfaces:
- UnbluModule
The API for the document co-browsing module. To obtain an instance of the API, call 
DocumentCoBrowsingModuleProvider.create().
 
 The API is only usable if the corresponding module was registered in the configuration of the UnbluClient.
 Note: If the connected server does not support document co-browsing, operations that return or emit booleans will indicate failure or inactivity with false.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCallback interface for document co-browsing operations
- 
Method SummaryModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<Boolean>Returns an observable stream of the document co-browsing activity state.booleanReturns the current state of document co-browsingvoidChecks whether the document co-browsing window is being dismissedvoidPresents (or re-presents) the document co-browsing UI to the uservoidstopDocumentCoBrowsing(boolean stopLayer, DocumentCoBrowsingModule.DocumentCoBrowsingCallback callback) Stops the document co-browsing session if activevoiduseViewerFragmentHost(int fragmentContainer, androidx.appcompat.app.AppCompatActivity activity) Tell the module to host the document viewer within an activity, replacing or adding a fragment in the given fragmentContainer.
- 
Method Details- 
useViewerFragmentHostvoid useViewerFragmentHost(@IdRes int fragmentContainer, @NonNull androidx.appcompat.app.AppCompatActivity activity) Tell the module to host the document viewer within an activity, replacing or adding a fragment in the given fragmentContainer. Optional. If not used, the SDK starts its own activity to host the document viewer.
- 
isDocumentCoBrowsingActiveValueboolean isDocumentCoBrowsingActiveValue()Returns the current state of document co-browsing- Returns:
- trueif document co-browsing is currently active,- falseotherwise.
 
- 
isDocumentCoBrowsingActiveio.reactivex.rxjava3.core.Observable<Boolean> isDocumentCoBrowsingActive()Returns an observable stream of the document co-browsing activity state. Emits the current state and any subsequent changes.- Returns:
- An Observablethat emitstruewhen document co-browsing becomes active andfalsewhen it becomes inactive.
 
- 
isDocumentCoBrowsingBeingDismissedvoid isDocumentCoBrowsingBeingDismissed(@NonNull DocumentCoBrowsingModule.DocumentCoBrowsingCallback callback) Checks whether the document co-browsing window is being dismissed- Parameters:
- callback- A callback that's called with a Boolean indicating whether the co-browsing UI is being dismissed (- true) or not (- false).
 
- 
showDocumentCoBrowsingPresents (or re-presents) the document co-browsing UI to the user- Parameters:
- callback- A callback that's called with a Boolean indicating whether the co-browsing UI was shown successfully (- true) or if an error/precondition prevented it (- false).
 
- 
stopDocumentCoBrowsingvoid stopDocumentCoBrowsing(boolean stopLayer, @NonNull DocumentCoBrowsingModule.DocumentCoBrowsingCallback callback) Stops the document co-browsing session if active- Parameters:
- stopLayer- If- true, stops any associated layer used during co-browsing.
- callback- A callback that's called with a Boolean indicating whether stopping was successful (- true) or failed due to an error or unmet precondition (- false).
 
 
-