The EnxRoom.destroy() method allows the Moderator to conclude an ongoing session.

Method: -(void)destroy; – No Parameter required.

Delegate Methods:

  • -room:didAckDestroy: – Acknowledgment to the Moderator when the session is destroyed.
  • -room:didRoomDisconnected: – Notification to all users in the Room when the session is destroyed.
[room destroy];

// Acknowledgement to Moderator that the session is destroyed
 (void)room:(EnxRoom *_Nullable)room didAckDestroy:(NSArray *_Nullable)data; 

Error Codes / Exceptions

CodeDescription
5116Unauthorized Access. When a user with participant role invokes destroy().