@interface CallViewController () <ParticipantEventListener>
@end
@implementation CallViewController
- (void)viewDidLoad {
[super viewDidLoad];
[[CallSession shared] addParticipantEventListener:self];
}
- (void)dealloc {
[[CallSession shared] removeParticipantEventListener:self];
}
- (void)onParticipantHandRaisedWithParticipant:(Participant *)participant {
NSLog(@"%@ raised their hand", participant.name);
// Show notification or visual indicator
[self showHandRaisedNotification:participant];
}
- (void)onParticipantHandLoweredWithParticipant:(Participant *)participant {
NSLog(@"%@ lowered their hand", participant.name);
// Remove notification or visual indicator
[self hideHandRaisedIndicator:participant];
}
// Other callbacks...
@end