holdCall

abstract fun holdCall(putOnHold: Boolean, callback: CompletionHandler<Void>)

Puts the call on hold or resumes it asynchronously.

This method provides immediate feedback on whether the hold/resume operation succeeded or failed. Hold state changes will also be notified via CallObserver.onCallHoldStateChanged()

Since

3.16.1

Parameters

putOnHold
  • true to put the call on hold, false to resume the call

callback
  • completion handler that will be called with success or error. On success, Result.data will be null. On failure, Result.error will contain error details.


open fun holdCall(putOnHold: Boolean)

Deprecated

Use holdCall with callback for confirmation of success/failure

Replace with

holdCall(putOnHold, CompletionHandler { })

Puts the call on hold or resumes it synchronously (deprecated).

Since

3.0.0

Parameters

putOnHold
  • true to put the call on hold, false to resume the call