Package com.unblu.sdk.module.call
Interface CallModule
- All Superinterfaces:
com.unblu.sdk.core.internal.call.UnbluCallModule
,UnbluModule
public interface CallModule
extends com.unblu.sdk.core.internal.call.UnbluCallModule
The API for the call module, independent of the call service provider. The API only works if the module was registered in the configuration of the
UnbluClient
.-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<Boolean>
Monitors Unblu for ongoing calls.void
isCallActive
(SuccessCallback<Boolean> success, NotInitializedExceptionCallback failure) Checks if there's an ongoing call in Unblu and returns a callback with the result of the check.void
Sets an interceptor for call indicator button clicks.Methods inherited from interface com.unblu.sdk.core.internal.call.UnbluCallModule
getProviders
-
Method Details
-
isCallActive
void isCallActive(@NotNull SuccessCallback<Boolean> success, @Nullable NotInitializedExceptionCallback failure) Checks if there's an ongoing call in Unblu and returns a callback with the result of the check.- Parameters:
success
- Called with the state of the callfailure
- Called if the API wasn't initialized
-
isCallActive
Monitors Unblu for ongoing calls.- Returns:
- An
Observable
that emits when a call is active
-
setCallIndicatorButtonClickInterceptor
Sets an interceptor for call indicator button clicks.
-