Conforms to NSObject
Declared in RespokeClient.h

Overview

A delegate protocol to notify the receiver of events occurring with the client

Tasks

  • – onConnect:

    Receive notification Respoke has successfully connected to the cloud.

    required method
  • – onDisconnect:reconnecting:

    Receive notification Respoke has successfully disconnected from the cloud.

    required method
  • – onError:fromClient:

    Handle an error that resulted from a method call.

    required method
  • – onCall:sender:

    Receive notification that the client is receiving a call from a remote party.

    required method
  • – onIncomingDirectConnection:endpoint:

    This event is fired when the logged-in endpoint is receiving a request to open a direct connection to another endpoint. If the user wishes to allow the direct connection, calling ‘accept’ on the direct connection will allow the connection to be set up.

    required method

Instance Methods

onCall:sender:

- (void)onCall:(RespokeCall *)call sender:(RespokeClient *)sender
Discussion

Receive notification that the client is receiving a call from a remote party.

Parameters

call

A reference to the incoming RespokeCall object

sender

The RespokeClient that is receiving the call

Declared In

RespokeClient.h

onConnect:

- (void)onConnect:(RespokeClient *)sender
Discussion

Receive notification Respoke has successfully connected to the cloud.

Parameters

sender

The RespokeClient that has connected

Declared In

RespokeClient.h

onDisconnect:reconnecting:

- (void)onDisconnect:(RespokeClient *)sender reconnecting:(BOOL)reconnecting
Discussion

Receive notification Respoke has successfully disconnected from the cloud.

Parameters

sender

The RespokeClient that has disconnected

reconnecting

Indicates if the Respoke SDK is attempting to automatically reconnect

Declared In

RespokeClient.h

onError:fromClient:

- (void)onError:(NSError *)error fromClient:(RespokeClient *)sender
Discussion

Handle an error that resulted from a method call.

Parameters

error

The error that has occurred

sender

The RespokeClient that is reporting the error

Declared In

RespokeClient.h

onIncomingDirectConnection:endpoint:

- (void)onIncomingDirectConnection:(RespokeDirectConnection *)directConnection endpoint:(RespokeEndpoint *)endpoint
Discussion

This event is fired when the logged-in endpoint is receiving a request to open a direct connection to another endpoint. If the user wishes to allow the direct connection, calling ‘accept’ on the direct connection will allow the connection to be set up.

Declared In

RespokeClient.h