Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCMeetingService+Polling.h
Go to the documentation of this file.
6#import <MobileRTC/MobileRTC.h>
7
8
13@interface MobileRTCPollingItem : NSObject
18- (NSString *_Nullable)getPollingID;
23- (NSString *_Nullable)getPollingName;
38- (NSInteger)getPollingQuestionCount;
43- (NSInteger)getTotalVotedUserCount;
49- (BOOL)isLibraryPolling;
50@end
51
56@interface MobileRTCPollingAnswerItem : NSObject
61- (NSString *_Nullable)getPollingID;
66- (NSString *_Nullable)getPollingQuestionID;
71- (NSString *_Nullable)getPollingSubQuestionID;
76- (NSString *_Nullable)getPollingAnswerID;
81- (NSString *_Nullable)getPollingAnswerName;
86- (NSString *_Nullable)getPollingAnsweredContent;
92- (BOOL)isChecked;
93@end
94
99@interface MobileRTCPollingQuestionItem : NSObject
104- (NSString *_Nullable)getPollingID;
109- (NSString *_Nullable)getPollingQuestionID;
114- (NSString *_Nullable)getPollingQuestionName;
124- (NSInteger)getAnsweredCount;
129- (BOOL)isRequired;
140@end
141
151- (NSString *_Nullable)getPollingID;
156- (NSString *_Nullable)getPollingQuestionID;
161- (NSString *_Nullable)getPollingSubQuestionID;
166- (NSString *_Nullable)getPollingAnswerID;
171- (NSString *_Nullable)getPollingAnswerName;
176- (NSInteger)getSelectedCount;
177@end
178
179
183@interface MobileRTCMeetingService (Polling)
184
185#pragma mark - for all users -
190- (BOOL)canDoPolling;
191
196- (NSString *_Nullable)getActivePollingID;
197
203- (NSArray <MobileRTCPollingQuestionItem *> * _Nullable)getPollingQuestionItemList:(NSString *_Nullable)pollingID;
204
210- (BOOL)canGetRightAnswerItemList:(NSString *_Nullable)pollingID;
211
217- (NSArray <MobileRTCPollingAnswerItem *> * _Nullable)getPollingRightAnswerItemList:(NSString *_Nullable)pollingID;
218
224- (BOOL)canShowAnswerResultList:(NSString *_Nullable)pollingID;
225
231- (NSArray <MobileRTCPollingAnswerResultItem *> * _Nullable)getPollingAnswerResultItemList:(NSString *_Nullable)pollingID;
232
238- (MobileRTCPollingItem * _Nullable)getPollingItemByID:(NSString *_Nullable)pollingID;
239
246- (NSString *_Nullable)getPollingQuestionImagePath:(NSString *_Nullable)pollingID questionID:(NSString *_Nullable)questionID;
247
254- (NSInteger)getQuestionCharactersMinLen:(NSString*_Nullable)pollingID questionID:(NSString*_Nullable)questionID;
255
262- (NSInteger)getQuestionCharactersMaxLen:(NSString*_Nullable)pollingID questionID:(NSString*_Nullable)questionID;
263
270- (BOOL)isQuestionCaseSensitive:(NSString *_Nullable)pollingID questionID:(NSString *_Nullable)questionID;
271
272#pragma mark - for host -
273
279- (BOOL)canAddPolling;
280
286
293- (BOOL)canEditPolling:(NSString *_Nullable)pollingID;
294
300- (MobileRTCSDKError)editPolling:(NSString *_Nullable)pollingID;
301
308- (BOOL)canDeletePolling:(NSString *_Nullable)pollingID;
309
315- (MobileRTCSDKError)deletePolling:(NSString *_Nullable)pollingID;
316
323- (BOOL)canDuplicatePolling:(NSString *_Nullable)pollingID;
324
330- (MobileRTCSDKError)duplicatePolling:(NSString *_Nullable)pollingID;
331
337- (BOOL)canViewPollingResultFromBrowser:(NSString *_Nullable)pollingID;
338
344- (MobileRTCSDKError)viewPollingResultFromBrowser:(NSString *_Nullable)pollingID;
345
350- (NSArray <MobileRTCPollingItem *> * _Nullable)getPollingItemList;
351
357- (BOOL)canStartPolling:(NSString *_Nullable)pollingID;
358
364- (MobileRTCSDKError)startPolling:(NSString *_Nullable)pollingID;
365
371- (MobileRTCSDKError)stopPolling:(NSString *_Nullable)pollingID;
372
378- (BOOL)canRestartPolling:(NSString *_Nullable)pollingID;
379
385- (MobileRTCSDKError)restartPolling:(NSString *_Nullable)pollingID;
386
392- (BOOL)canSharePollingResult:(NSString *_Nullable)pollingID;
393
399- (MobileRTCSDKError)startSharePollingResult:(NSString *_Nullable)pollingID;
400
406- (MobileRTCSDKError)stopSharePollingResult:(NSString *_Nullable)pollingID;
407
413- (MobileRTCSDKError)enableGetRightAnswerList:(BOOL)enable;
414
419- (BOOL)canDownloadResult;
420
426
427#pragma mark - for attendee -
428
436- (MobileRTCSDKError)setAnswerCheck:(MobileRTCPollingAnswerItem * _Nullable)answerItem check:(BOOL)check;
437
445- (MobileRTCSDKError)setAnswerContent:(MobileRTCPollingAnswerItem * _Nullable)answerItem answerText:(NSString *_Nullable)answerText;
446
452- (BOOL)canSubmitPolling:(NSString *_Nullable)pollingID;
453
459- (MobileRTCSDKError)submitPolling:(NSString *_Nullable)pollingID;
460@end
461
MobileRTCPollingStatus
Enumeration of polling statuses.
MobileRTCSDKError
Enumeration of the SDK error.
MobileRTCPollingQuestionType
Enumeration of the polling question types. For more information, please visit https://support....
MobileRTCPollingType
Enumeration of polling types.
MobileRTCSDKError downLoadResult()
Downloads all stopped poll's result from browser.
BOOL canDownloadResult()
Determines if the host can download poll's result from browser.
BOOL canAddPolling()
Determines if the host can add polling.
MobileRTCSDKError addPolling()
Creates polling in a web browser.
NSString *_Nullable getActivePollingID()
Gets the active poll's ID.
BOOL canDoPolling()
Determines whether the current meeting can do polling.
NSArray< MobileRTCPollingItem * > *_Nullable getPollingItemList()
Gets the list of poll items.
NSString *_Nullable getPollingQuestionID()
Gets the polling question ID.
NSString *_Nullable getPollingAnsweredContent()
Gets the polling answered content.
NSString *_Nullable getPollingAnswerID()
Gets the polling answer ID.
NSString *_Nullable getPollingID()
Gets the polling ID of the answer item.
NSString *_Nullable getPollingSubQuestionID()
Gets the polling sub-question ID.
BOOL isChecked()
Determines if it is checked.
NSString *_Nullable getPollingAnswerName()
Gets the polling answer name.
Polling answer result item interface.
NSString *_Nullable getPollingQuestionID()
Gets the polling question ID.
NSString *_Nullable getPollingSubQuestionID()
Gets the polling sub-question ID.
NSInteger getSelectedCount()
Queries how many participants selected this answer.
NSString *_Nullable getPollingID()
Gets the polling ID of the answer result item.
NSString *_Nullable getPollingAnswerID()
Gets the polling answer ID.
NSString *_Nullable getPollingAnswerName()
Gets the polling answer name.
NSString *_Nullable getPollingName()
Gets the polling name.
NSInteger getPollingQuestionCount()
Gets the polling question count.
MobileRTCPollingType getPollingType()
Gets the polling type.
NSInteger getTotalVotedUserCount()
Gets the count of total voted users.
NSString *_Nullable getPollingID()
Gets the polling ID.
BOOL isLibraryPolling()
Determines if it is library polling.
MobileRTCPollingStatus getPollingStatus()
Gets the polling status.
NSInteger getAnsweredCount()
Gets the count of answered questions.
NSArray< MobileRTCPollingAnswerItem * > *_Nullable getPollingAnswerItemList()
Gets the list of polling question or subquestion's answer.
NSString *_Nullable getPollingQuestionName()
Gets the polling question name.
BOOL isRequired()
Determines if it is required.
MobileRTCPollingQuestionType getPollingQuestionType()
Gets the polling question type.
NSString *_Nullable getPollingQuestionID()
Gets the polling question ID.
NSArray< MobileRTCPollingQuestionItem * > *_Nullable getPollingSubQuestionItemList()
Gets the list of polling question's subquestion.
NSString *_Nullable getPollingID()
Gets the polling ID of the question item.