MXMeetListModel Class Reference

Inherits from NSObject
Declared in MXMeetListModel.h

Overview

The MXMeetListModel class provides interfaces for creating, deleting, accepting and declining meets. It also maintains all the meets object related with current user.

  delegate

The object that acts as delegate of the meet list

@property (nonatomic, weak, nullable) id<MXMeetListModelDelegate> delegate

Declared In

MXMeetListModel.h

– meets

Return an array containing all meets

- (NSArray<MXMeet*> *)meets

Declared In

MXMeetListModel.h

– startMeetWithTopic:completionHandler:

Start a meet by specifying meet topic

- (void)startMeetWithTopic:(NSString *_Nullable)topic completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil , MXMeetSession *_Nullable meetSession ))completionHandler

Parameters

topic

The meet topic

completionHandler

A block object to be exexcuted when the action completes

Discussion

An error with code MXChatSDKErrorPreconditionNotSatisfied will occurred if there is another session in progress.

Declared In

MXMeetListModel.h

– startMeetWithMeetId:completionHandler:

Start a meet by specifying meet id

- (void)startMeetWithMeetId:(NSString *)meetId completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil , MXMeetSession *_Nullable meetSession ))completionHandler

Parameters

meetId

The meet id

completionHandler

A block object to be executed when the action completes

Discussion

An error with code MXChatSDKErrorPreconditionNotSatisfied will occurred if there is another session in progress.

Declared In

MXMeetListModel.h

– joinMeetWithMeetId:completionHandler:

Join a meet by specifying meet id

- (void)joinMeetWithMeetId:(NSString *)meetId completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil , MXMeetSession *_Nullable meetSession ))completionHandler

Parameters

meetId

The meet id

completionHandler

A block object to be executed when the action completes

Discussion

An error with code MXChatSDKErrorPreconditionNotSatisfied will occurred if there is another session in progress.

Declared In

MXMeetListModel.h

– deleteMeet:withCompletionHandler:

Delete meet

- (void)deleteMeet:(MXMeet *)meet withCompletionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil ))completionHandler

Parameters

meet

The meet that the user is going to delete

completionHandler

A block object to be executed when the action completes

Discussion

A user who is not the host has no permission for deleting the meet, an error with code MXChatSDKErrorNoPermission will occurred if you do so.

Declared In

MXMeetListModel.h

– acceptMeetWithMeetId:completionHandler:

accept meet

- (void)acceptMeetWithMeetId:(NSString *)meetId completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil ))completionHandler

Parameters

meetId

The meet to be accepted.

completionHandler

A block object to be executed when the action completes

Declared In

MXMeetListModel.h

– declineMeetWithMeetId:completionHandler:

decline meet

- (void)declineMeetWithMeetId:(NSString *)meetId completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil ))completionHandler

Parameters

meetId

The meet to be declined.

completionHandler

A block object to be executed when the action completes

Declared In

MXMeetListModel.h