Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKUserHelper Class Reference

User control interface. More...

#include <ZMVideoSDKUserHelper.h>

Inherits NSObject.

Instance Methods

(BOOL) - changeName:user:
 Change a specific user's name.
 
(BOOL) - makeHost:
 Assign a user as the session host.
 
(BOOL) - makeManager:
 Assign a user as the session manager.
 
(BOOL) - revokeManager:
 Revoke manager rights from a user.
 
(BOOL) - removeUser:
 Remove user from session.
 
(BOOL) - reclaimHost
 Reclaim host permission. Allow the user whose role_type = 1 to reclaim the host role.
 

Detailed Description

User control interface.

Definition at line 521 of file ZMVideoSDKUserHelper.h.

Method Documentation

◆ changeName:user:

- (BOOL) changeName: (NSString *) name
user: (ZMVideoSDKUser *) user 

Change a specific user's name.

Parameters
nameThe new user name.
userUser in the session.
Returns
YES indicates that name change is success. Otherwise, this function returns NO.

◆ makeHost:

- (BOOL) makeHost: (ZMVideoSDKUser *) user

Assign a user as the session host.

Parameters
userUser in the session.
Returns
YES indicates that the user is now the host. Otherwise, this function returns NO.

◆ makeManager:

- (BOOL) makeManager: (ZMVideoSDKUser *) user

Assign a user as the session manager.

Parameters
userUser in the session.
Returns
YES indicates that the user is now the manager. Otherwise, this function returns NO.

◆ reclaimHost

- (BOOL) reclaimHost

Reclaim host permission. Allow the user whose role_type = 1 to reclaim the host role.

Returns
If the function succeeds, the return value is YES. Otherwise, this function returns NO.

◆ removeUser:

- (BOOL) removeUser: (ZMVideoSDKUser *) user

Remove user from session.

Parameters
userUser in the session.
Returns
If the function succeeds, the return value is YES. Otherwise, this function returns NO.

◆ revokeManager:

- (BOOL) revokeManager: (ZMVideoSDKUser *) user

Revoke manager rights from a user.

Parameters
userUser in the session.
Returns
YES indicates that the user no longer has manager rights. Otherwise, this function returns NO.