VoxImplantDelegate

Warning: Deprecated. Use VICallDelegate, VIClientSessionDelegate and VIClientCallManagerDelegate. Please see details in each particular method.

Members
Connection Events
–  onConnectionSuccessful

Connection with VoxImplant cloud established

Warning: Deprecated. Use [VIClientSessionDelegate clientSessionDidConnect:] instead.

- (void)onConnectionSuccessful
–  onConnectionClosed

Connection with cloud closed

- (void)onConnectionClosed
–  onConnectionFailedWithError:

Connection with cloud failed

- (void)onConnectionFailedWithError:(NSString *)reason
Parameters
reason

Error message

Login Events
–  onLoginSuccessfulWithDisplayName:andAuthParams:

Triggered if login attempt was successful

- (void)onLoginSuccessfulWithDisplayName:(NSString *)displayName andAuthParams:(NSDictionary *)authParams
Parameters
displayName

Full name of logged in user

authParams

Auth params

 //Example auth params:
 {"accessExpire" : seconds_to_expire ,
 "accessToken" : "accessToken_abcdef..." ,
 "refreshExpire" : refresh_to_expire ,
 "refreshToken" : "refreshToken_abcdef..." }
–  onLoginFailedWithErrorCode:

Triggered if login attempt failed

- (void)onLoginFailedWithErrorCode:(NSNumber *)errorCode
Parameters
errorCode

Numeric error code

–  onOneTimeKeyGenerated:

Returns one time key generated by the login server as a result of requestOneTimeLoginKey.

Warning: Deprecated. Use completion handler in [VIClient requestOneTimeKeyWithUser:result:] instead.

- (void)onOneTimeKeyGenerated:(NSString *)key
Parameters
key

One time key

–  onRefreshTokenFailed:

Triggered when refresh of login tokens failed

Warning: Deprecated. Use completion handler in [VIClient requestOneTimeKeyWithUser:result:] instead.

- (void)onRefreshTokenFailed:(NSNumber *)errorCode
Parameters
errorCode

Error code

–  onRefreshTokenSuccess:

Triggered when refresh of login tokens finished successfully

Warning: Deprecated. Use completion handler in [VIClient requestOneTimeKeyWithUser:result:] instead.

- (void)onRefreshTokenSuccess:(NSDictionary *)authParams
Parameters
authParams

Auth params

Incoming Call Event
–  onIncomingCall:caller:named:withVideo:withHeaders:
- (void)onIncomingCall:(NSString *)callId caller:(NSString *)from named:(NSString *)displayName withVideo:(bool)videoCall withHeaders:(NSDictionary *)headers
Parameters
callId

Id of call

from

SIP URI of caller

displayName

Displayed name of caller

videoCall

Incoming video call flag

headers

Optional headers passed with event

Call Events
–  onCallConnected:withHeaders:

Call established

Warning: Deprecated. Use [VICallDelegate call:didConnectWithHeaders:] instead.

- (void)onCallConnected:(NSString *)callId withHeaders:(NSDictionary *)headers
Parameters
callId

id of call

headers

Optional headers passed with event

–  onCallDisconnected:withHeaders:

Call terminated

- (void)onCallDisconnected:(NSString *)callId withHeaders:(NSDictionary *)headers
Parameters
callId

id of call

headers

Optional headers passed with event

–  onCallRinging:withHeaders:

Call ringing. You should start playing call progress tone now

Warning: Deprecated. Use [VICallDelegate call:startRingingWithHeaders:] instead.

- (void)onCallRinging:(NSString *)callId withHeaders:(NSDictionary *)headers
Parameters
callId

id of call

headers

Optional headers passed with event

–  onCallFailed:withCode:andReason:withHeaders:

Call failed

Warning: Deprecated. Use [VICallDelegate call:didFailWithError:headers:] instead.

- (void)onCallFailed:(NSString *)callId withCode:(int)code andReason:(NSString *)reason withHeaders:(NSDictionary *)headers
Parameters
callId

Id of call

code

Status code

reason

Status message

headers

Optional headers passed with event

–  onCallAudioStarted:

Call audio started. You should stop playing progress tone when event is received

Warning: Deprecated. Use [VICallDelegate callDidStartAudio:] instead.

- (void)onCallAudioStarted:(NSString *)callId
Parameters
callId

Id of call

–  onSIPInfoReceivedInCall:withType:andContent:withHeaders:

Info received inside a call

Warning: Deprecated. Use [VICallDelegate call:didReceiveInfo:type:headers:] instead.

- (void)onSIPInfoReceivedInCall:(NSString *)callId withType:(NSString *)type andContent:(NSString *)content withHeaders:(NSDictionary *)headers
Parameters
callId

Id of call

type

MIME type of info

content

Body of info message

headers

Optional headers passed with event

–  onMessageReceivedInCall:withText:withHeaders:

Instant message received inside a call

Warning: Deprecated. Use [VICallDelegate call:didReceiveMessage:headers:] instead.

- (void)onMessageReceivedInCall:(NSString *)callId withText:(NSString *)text withHeaders:(NSDictionary *)headers
Parameters
callId

Id of call

text

Message text

headers

Optional headers passed with event

–  onNetStatsReceivedInCall:withStats:

Event dispatched when packet loss data received from VoxImplant servers

Warning: Deprecated. Use [VICallDelegate call:didReceiveStatistics:] instead.

- (void)onNetStatsReceivedInCall:(NSString *)callId withStats:(const struct VoxImplantNetworkInfo *)stats
Parameters
callId

Id of call

stats

VoxImplantNetworkInfo

–  onPreprocessCameraCapturedVideo:rotation:

Triggered when new video frame is available for preprocessing.

- (void)onPreprocessCameraCapturedVideo:(CVPixelBufferRef)pixelBuffer rotation:(int)rotation
Parameters
pixelBuffer

Video frame pixel buffer

rotation

Video rotation