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 SDK error.
MobileRTCPollingQuestionType
Enumeration of polling question types. For more information, please visit https://support....
MobileRTCPollingType
Enumeration of polling types.
MobileRTCSDKError downLoadResult()
Download all stopped poll's result from browser.
BOOL canDownloadResult()
Determine if the host can download poll's result from browser.
BOOL canAddPolling()
Determine if the host can add polling.
MobileRTCSDKError addPolling()
Create polling in a web browser.
NSString *_Nullable getActivePollingID()
Get the active poll's ID.
BOOL canDoPolling()
Determine whether the current meeting can do the polling.
NSArray< MobileRTCPollingItem * > *_Nullable getPollingItemList()
Get the list of poll item.
NSString *_Nullable getPollingQuestionID()
Polling question ID.
NSString *_Nullable getPollingAnsweredContent()
Polling answered content.
NSString *_Nullable getPollingAnswerID()
Polling answer ID.
NSString *_Nullable getPollingID()
Polling ID of answer item.
NSString *_Nullable getPollingSubQuestionID()
Polling sub-question ID.
BOOL isChecked()
Determine if is checked.
NSString *_Nullable getPollingAnswerName()
Polling answer name.
Polling answer result item interface.
NSString *_Nullable getPollingQuestionID()
Polling queston ID.
NSString *_Nullable getPollingSubQuestionID()
Polling sub-queston ID.
NSInteger getSelectedCount()
Query how many participants selected this answer.
NSString *_Nullable getPollingID()
Polling ID of answer result item.
NSString *_Nullable getPollingAnswerID()
Polling answer ID.
NSString *_Nullable getPollingAnswerName()
Polling answer name.
NSString *_Nullable getPollingName()
Polling name.
NSInteger getPollingQuestionCount()
Polling question count.
MobileRTCPollingType getPollingType()
Polling type.
NSInteger getTotalVotedUserCount()
Count of total voted users.
NSString *_Nullable getPollingID()
Polling ID.
BOOL isLibraryPolling()
Determine if is library polling.
MobileRTCPollingStatus getPollingStatus()
Polling status.
NSInteger getAnsweredCount()
The count of answered questions.
NSArray< MobileRTCPollingAnswerItem * > *_Nullable getPollingAnswerItemList()
Get the list of polling question or subquestion's answer.
NSString *_Nullable getPollingQuestionName()
Polling question name.
BOOL isRequired()
Determine if is required.
MobileRTCPollingQuestionType getPollingQuestionType()
Polling question type.
NSString *_Nullable getPollingQuestionID()
Polling question ID.
NSArray< MobileRTCPollingQuestionItem * > *_Nullable getPollingSubQuestionItemList()
Get the list of polling question's subquestion.
NSString *_Nullable getPollingID()
Polling ID of question item.