Updated on 2023-03-23 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 proxy during SDK initialization or set the proxy 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

Common participant.

HWMConfRoleTypeChairman

Host.

HWMConfRoleTypeAudience

Attendee.