Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Breeze™ Client SDK - General » [iOS]How to hold a call in CSDK on click of button?   XML
 
Author Message
prashant06



Joined: 08/08/2017 07:51:56
Messages: 32
Offline

Is there provided facility to hold a call on click of button in CSDK.

This message was edited 1 time. Last update was at 07/12/2017 04:37:04

Rumata



Joined: 20/12/2016 06:06:23
Messages: 128
Offline

Hi Prashant,
Thank you fo your question.

Could you clarify, what facility do you need?

On iOS you can hold a call using the holdWithCompletionHandler: method of the CSCall object.
prashant06



Joined: 08/08/2017 07:51:56
Messages: 32
Offline

Once call is established from client side there should be a button to hold call. So after pressing hold button what code needs to be write to hold call at client side (at mobile end).

I got this delegate method of CSCallDelegate
- (void)callDidHold:(CSCall *)call

Now I want know what code should I write to hold a call at mobile end.

This message was edited 2 times. Last update was at 07/12/2017 01:14:01

Rumata



Joined: 20/12/2016 06:06:23
Messages: 128
Offline

Simply use the holdWithCompletionHandler method of the CSCall object

- (void) holdWithCompletionHandler: (void(^)(NSError *error)) handler

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/ios/communication/api_refs/interface_c_s_call.html#a0ce3c0c4095334b5417de60676b4ad36

See code sample below
[call holdWithCompletionHandler:^(NSError *error) {
if (error) {
//error
} else {
//call is held
}
}];
 
 
Go to: