RtccDelegate Protocol Reference

Conforms to NSObject
Declared in Rtcc.h

– rtccCallCreated: required method

This function will be called after a call is created, either by calling a contact or receiving a call.

To accept the call, use [RtccCall resume]. To deny it, use [RtccCall hangup]. The RtccCall object can possess a delegate of its own, RtccCallDelegate. In case of an incoming call, the [RtccCall contactUID] will be nil, as only the display name is sent through the network.

- (void)rtccCallCreated:(RtccCall *)call
Parameters
call

The call created, can’t be nil. Host App depends on the [RtccCall callStatus] value (callStatus_t type value)

Availability

5.0

Declared In

Rtcc.h

– rtccCallEnded:withReason: required method

Called when the call terminates, with an additional termination reason.

This reason is either local, remote or error.

- (void)rtccCallEnded:(RtccCall *)call withReason:(callEndReason_t)reason
Parameters
call

A pointer to the call that was terminated.

reason

The reason of the call termination.

Declared In

Rtcc.h

– rtccDidAuthenticate: required method

Called by the Rtcc singleton after the authentication step.

- (void)rtccDidAuthenticate:(NSError *)error
Parameters
error

If authentication failed, error will be different from nil. The debugDescription field of the NSError returns a NSString * describing the error in human terms. Otherwise, it is nil.

Availability

5.0

Declared In

Rtcc.h

– rtccDidConnect: required method

Called when Rtcc singleton ended its initialization.

If no error occured the Rtcc singleton is connected and users can proceed to the authentication step.

- (void)rtccDidConnect:(NSError *)error
Parameters
error

nil if no error occured. If different from nil then the connection did NOT succeed. The debugDescription field of the NSError returns a NSString * describing the error in human terms.

Availability

5.0

Declared In

Rtcc.h

– rtccCallEnded:

This function will be called after a call is stopped.

The object call will be released soon after this method returns.

- (void)rtccCallEnded:(RtccCall *)call
Parameters
call

The call that is stopped.

Availability

5.0 optional since 5.4

Declared In

Rtcc.h

– rtccDidDisconnect:

Called when Rtcc gets disconnected from the server.

If an error occured, the error debugDescription contains a human readable text and the error code can be found in RtccData.h. To reconnect, use [Rtcc connectWithAppID:andUserType:].

- (void)rtccDidDisconnect:(NSError *)error
Parameters
error

nil if the Rtcc singleton disconnected normally.

Availability

5.0

Declared In

Rtcc.h

– rtccUserInfo:

Triggered when the SDK have to transmit data to its delegate.

- (void)rtccUserInfo:(NSDictionary *)userInfo
Parameters
userInfo

A dictionary.

Discussion

Triggered when the SDK have to transmit data to its delegate.

Declared In

Rtcc.h