SIGN UP

VoxImplantDelegate

Deprecated

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

Methods

onCallAudioStarted:

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

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

Parameters

  • callId:

    NSString *

    Id of call

onCallConnected:withHeaders:

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

Call established

Parameters

  • callId:

    NSString *

    id of call

  • headers:

    NSDictionary *

    Optional headers passed with event

onCallDisconnected:withHeaders:

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

Call terminated

Parameters

  • callId:

    NSString *

    id of call

  • headers:

    NSDictionary *

    Optional headers passed with event

onCallFailed:withCode:andReason:withHeaders:

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

Call failed

Parameters

  • callId:

    NSString *

    Id of call

  • code:

    int

    Status code

  • reason:

    NSString *

    Status message

  • headers:

    NSDictionary *

    Optional headers passed with event

onCallRinging:withHeaders:

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

Call ringing. You should start playing call progress tone now

Parameters

  • callId:

    NSString *

    id of call

  • headers:

    NSDictionary *

    Optional headers passed with event

onConnectionClosed

Deprecated
- (void)onConnectionClosed

Connection with cloud closed

onConnectionFailedWithError:

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

Connection with cloud failed

Parameters

  • reason:

    NSString *

    Error message

onConnectionSuccessful

Deprecated
- (void)onConnectionSuccessful

Connection with Voximplant cloud established

onIncomingCall:caller:named:withVideo:withHeaders:

Deprecated
- (void)onIncomingCall:(NSString *)callId
                caller:(NSString *)from
                 named:(NSString *)displayName
             withVideo:(BOOL)videoCall
           withHeaders:(NSDictionary *)headers

Incoming call arrives

Parameters

  • callId:

    NSString *

    Id of call

  • from:

    NSString *

    SIP URI of caller

  • displayName:

    NSString *

    Displayed name of caller

  • videoCall:

    BOOL

    Incoming video call flag

  • headers:

    NSDictionary *

    Optional headers passed with event

onLoginFailedWithErrorCode:

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

Triggered if login attempt failed

Parameters

  • errorCode:

    NSNumber *

    Numeric error code

onLoginSuccessfulWithDisplayName:andAuthParams:

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

Triggered if login attempt was successful

Parameters

  • displayName:

    NSString *

    Full name of logged in user

  • authParams:

    NSDictionary *

    Auth params

    Example structure of auth params:

    {"accessExpire" : seconds_to_expire ,
    "accessToken" : "accessToken_abcdef..." ,
    "refreshExpire" : refresh_to_expire ,
    "refreshToken" : "refreshToken_abcdef..." }

onMessageReceivedInCall:withText:withHeaders:

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

Instant message received inside a call

Parameters

  • callId:

    NSString *

    Id of call

  • text:

    NSString *

    Message text

  • headers:

    NSDictionary *

    Optional headers passed with event

onNetStatsReceivedInCall:withStats:

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

Event dispatched when packet loss data received from Voximplant servers

Parameters

  • callId:

    NSString *

    Id of call

  • stats:

    const struct VoxImplantNetworkInfo *

    VoxImplantNetworkInfo

onOneTimeKeyGenerated:

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

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

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

Parameters

  • key:

    NSString *

    One time key

onPreprocessCameraCapturedVideo:rotation:

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

Triggered when new video frame is available for preprocessing.

Parameters

  • pixelBuffer:

    CVPixelBufferRef

    Video frame pixel buffer

  • rotation:

    int

    Video rotation

onRefreshTokenFailed:

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

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

Triggered when refresh of login tokens failed

Parameters

  • errorCode:

    NSNumber *

    Error code

onRefreshTokenSuccess:

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

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

Triggered when refresh of login tokens finished successfully

Parameters

  • authParams:

    NSDictionary *

    Auth params

onSIPInfoReceivedInCall:withType:andContent:withHeaders:

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

Info received inside a call

Parameters

  • callId:

    NSString *

    Id of call

  • type:

    NSString *

    MIME type of info

  • content:

    NSString *

    Body of info message

  • headers:

    NSDictionary *

    Optional headers passed with event