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.static void
setNativeInboundCallUiEnabled
(Boolean enabled) Enables or disables the native UI for incoming calls.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. -
setNativeInboundCallUiEnabled
Enables or disables the native UI for incoming calls. By default it is enabled.If enabled, notifications are used to display incoming calls the same way that typical phone call apps do. You must call the function before you create a call module. When the phone is locked, the notification is displayed full-screen. When the phone is unlocked, the user sees a notification at the top of the screen.
If disabled, the user only sees incoming calls within the UI exposed by the SDK.
- Parameters:
enabled
- A Boolean indicating whether to enable or disable the native UI for incoming calls.
-