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 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 call
      failure - Called if the API wasn't initialized
    • isCallActive

      @NotNull io.reactivex.rxjava3.core.Observable<Boolean> isCallActive()
      Monitors Unblu for ongoing calls.
      Returns:
      An Observable that emits when a call is active
    • setCallIndicatorButtonClickInterceptor

      void setCallIndicatorButtonClickInterceptor(IndicatorButtonClickInterceptor interceptor)
      Sets an interceptor for call indicator button clicks.
    • setNativeInboundCallUiEnabled

      static void setNativeInboundCallUiEnabled(Boolean enabled)
      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.