Updated on 2024-07-30 GMT+08:00

Role Change Notification

Notification Description

A notification is sent when a role changes.

Method Definition

1
- (void)onSelfRoleChanged:(HWMConfRoleType)confRole;

Sample Code

- (void)onSelfRoleChanged:(HWMConfRoleType)confRole {
    switch (confRole) {
        case HWMConfRoleTypeAttendee:
            NSLog(@"Participant");
            break;
        case HWMConfRoleTypeAudience:
            NSLog(@"Attendee");
            break;
        case HWMConfRoleTypeChairman:
            NSLog(@"Host");
            break;
        default:
            break;
    }
}

Precautions

  1. Subscribe to the HWMBizNotificationHandler delegate during SDK initialization or set the delegate on the target page.

Parameter Description

Table 1 Parameter description

Parameter

Type

Description

confRole

HWMConfRoleType

Role.

Table 2 Enumerated values of HWMConfRoleType

Enumerated Value

Description

HWMConfRoleTypeInvalid = -1

Invalid role.

HWMConfRoleTypeAttendee = 0

Guest.

HWMConfRoleTypeChairman

Host.

HWMConfRoleTypeAudience

Attendee.