BCXCallObserver
Objective-C
@protocol BCXCallObserver <NSObject>
Swift
protocol BCXCallObserver : NSObjectProtocol
A call observer, notified about call events.
-
Invoked when a call changes state.
Declaration
Objective-C
- (void)call:(nonnull id<BCXCall>)call didChangeState:(BCXCallState)state;
Parameters
call
The call object.
state
The new call state.
-
Invoked when a call updates its options.
Declaration
Objective-C
- (void)call:(nonnull id<BCXCall>)call didUpdateOptions:(nonnull BCXCallOptions *)options;
Parameters
call
The call object.
options
The new call options.
-
Invoked when a call updates its participants.
Declaration
Objective-C
- (void)call:(nonnull id<BCXCall>)call didUpdateParticipants:(nonnull id<BCXCallParticipants>)participants;
Parameters
call
The call object.
participants
The new call participants.
-
Invoked when a call has upgraded to audio/video call.
Declaration
Objective-C
- (void)callDidUpgradeToVideoCall:(nonnull id<BCXCall>)call;
Parameters
call
The call object.
-
Invoked when a call has connected.
You should enter the room where this call will take place.
Declaration
Objective-C
- (void)callDidConnect:(nonnull id<BCXCall>)call;
Parameters
call
The call object.
-
Invoked when a call has ended.
Declaration
Objective-C
- (void)callDidEnd:(nonnull id<BCXCall>)call;
Parameters
call
The call object.
-
Invoked when a call has failed.
Declaration
Objective-C
- (void)call:(nonnull id<BCXCall>)call didFailWithError:(nonnull NSError *)error;
Parameters
call
The call object.
error
The error that caused the failure.