Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKPollingController.h
Go to the documentation of this file.
1
11
12#import <Foundation/Foundation.h>
13#import <ZoomSDK/ZoomSDKErrors.h>
14
15NS_ASSUME_NONNULL_BEGIN
16
31
32
45
46
74
75
100
105@interface ZoomSDKPollingItem : NSObject
109@property(nonatomic, copy, readonly, nullable) NSString* pollingID;
113@property(nonatomic, copy, readonly, nullable) NSString* pollingName;
117@property(nonatomic, assign, readonly) ZoomSDKPollingType pollingType;
121@property(nonatomic, assign, readonly) ZoomSDKPollingStatus pollingStatus;
125@property(nonatomic, assign, readonly) unsigned int pollingQuestionCount;
129@property(nonatomic, assign, readonly) unsigned int totalVotedUserCount;
133@property(nonatomic, assign, readonly) BOOL isLibraryPolling;
134@end
135
136
137
142@interface ZoomSDKPollingAnswerItem : NSObject
146@property(nonatomic, copy, readonly, nullable) NSString* pollingID;
150@property(nonatomic, copy, readonly, nullable) NSString* pollingQuestionID;
154@property(nonatomic, copy, readonly, nullable) NSString* pollingSubQuestionID;
158@property(nonatomic, copy, readonly, nullable) NSString* pollingAnswerID;
162@property(nonatomic, copy, readonly, nullable) NSString* pollingAnswerName;
166@property(nonatomic, copy, readonly, nullable) NSString* pollingAnsweredContent;
171@property(nonatomic, assign, readonly) BOOL isChecked;
172@end
173
174
183@property(nonatomic, copy, readonly, nullable) NSString* pollingID;
187@property(nonatomic, copy, readonly, nullable) NSString* pollingQuestionID;
191@property(nonatomic, copy, readonly, nullable) NSString* pollingSubQuestionID;
195@property(nonatomic, copy, readonly, nullable) NSString* pollingAnswerID;
199@property(nonatomic, copy, readonly, nullable) NSString* pollingAnswerName;
203@property(nonatomic, assign, readonly) unsigned int selectedCount;
204@end
205
206
211@interface ZoomSDKPollingQuestionItem : NSObject
215@property(nonatomic, copy, readonly, nullable) NSString* pollingID;
219@property(nonatomic, copy, readonly, nullable) NSString* pollingQuestionID;
223@property(nonatomic, copy, readonly, nullable) NSString* pollingQuestionName;
227@property(nonatomic, assign, readonly) ZoomSDKPollingQuestionType pollingQuestionType;
231@property(nonatomic, assign, readonly) unsigned int answeredCount;
235@property(nonatomic, assign, readonly) BOOL isRequired;
239@property(nonatomic, retain, readonly, nullable) NSArray<ZoomSDKPollingQuestionItem*>* pollingSubQuestionItemList;
243@property(nonatomic, retain, readonly, nullable) NSArray<ZoomSDKPollingAnswerItem*>* pollingAnswerItemList;
244@end
245
246
247
252@protocol ZoomSDKPollingControllerDelegate <NSObject>
253@optional
259- (void)onPollingStatusChanged:(NSString*)pollingID status:(ZoomSDKPollingStatus)status;
260
265- (void)onPollingResultUpdated:(NSString*)pollingID;
266
271
280- (void)onPollingActionResult:(ZoomSDKPollingActionType)actionType pollingID:(NSString*)pollingID bSuccess:(BOOL)bSuccess errorMsg:(NSString*_Nullable)errorMsg;
281
287- (void)onPollingQuestionImageDownloaded:(NSString*)questionID path:(NSString*)path;
288
294- (void)onGetPollingElapsedTime:(NSString*)pollingID elapsedTime:(unsigned int)elapsedTime;
295
300- (void)onGetRightAnswerListPrivilege:(BOOL)bCan;
301
306@end
307
308
313@interface ZoomSDKPollingController : NSObject
314{
315 id<ZoomSDKPollingControllerDelegate> _delegate;
316}
320@property(nonatomic, assign, nullable)id<ZoomSDKPollingControllerDelegate> delegate;
321
322//Common (for all)
328
334- (BOOL)canShowAnswerResultList:(NSString*)pollingID;
335
341- (NSArray<ZoomSDKPollingQuestionItem*>*)getPollingQuestionItemList:(NSString*)pollingID;
342
348- (NSArray<ZoomSDKPollingAnswerItem*>*)getPollingRightAnswerItemList:(NSString*)pollingID;
349
355- (NSArray<ZoomSDKPollingAnswerResultItem*>*)getPollingAnswerResultItemList:(NSString*)pollingID;
356
362- (ZoomSDKPollingItem*)getPollingItemByID:(NSString*)pollingID;
363
369- (BOOL)canGetRightAnswerItemList:(NSString*)pollingID;
370
377- (NSString*)getPollingQuestionImagePath:(NSString*)pollingID questionID:(NSString*)questionID;
378
388- (ZoomSDKError)getQuestionCharactersLengthRange:(NSString*)pollingID questionID:(NSString*)questionID minLen:(unsigned int*)minLen maxLen:(unsigned int*)maxLen;
389
397- (BOOL)isQuestionCaseSensitive:(NSString*)pollingID questionID:(NSString*)questionID;
398
404
405
406//Host
413
419
426- (BOOL)canEditPolling:(NSString*)pollingID;
427
433- (ZoomSDKError)editPolling:(NSString*)pollingID;
434
441- (BOOL)canDeletePolling:(NSString*)pollingID;
442
448- (ZoomSDKError)deletePolling:(NSString*)pollingID;
449
456- (BOOL)canDuplicatePolling:(NSString*)pollingID;
457
463- (ZoomSDKError)duplicatePolling:(NSString*)pollingID;
464
471- (BOOL)canViewPollingResultFromBrowser:(NSString*)pollingID;
472
478- (ZoomSDKError)viewPollingResultFromBrowser:(NSString*)pollingID;
479
485
491- (BOOL)canStartPolling:(NSString*)pollingID;
492
498- (ZoomSDKError)startPolling:(NSString*)pollingID;
499
505- (ZoomSDKError)stopPolling:(NSString*)pollingID;
506
512- (BOOL)canRestartPolling:(NSString*)pollingID;
513
519- (ZoomSDKError)restartPolling:(NSString*)pollingID;
520
526- (BOOL)canSharePollingResult:(NSString*)pollingID;
527
533- (ZoomSDKError)startSharePollingResult:(NSString*)pollingID;
534
540- (ZoomSDKError)stopSharePollingResult:(NSString*)pollingID;
541
547- (ZoomSDKError)enableGetRightAnswerList:(BOOL)bEnable;
548
555
561
562
570- (ZoomSDKError)setAnswerCheck:(ZoomSDKPollingAnswerItem*)answerItem bCheck:(BOOL)bCheck;
571
579- (ZoomSDKError)setAnswerContent:(ZoomSDKPollingAnswerItem*)answerItem answerText:(NSString*)answerText;
580
586- (BOOL)canSubmitPolling:(NSString*)pollingID;
587
593- (ZoomSDKError)submitPolling:(NSString*)pollingID;
594@end
595NS_ASSUME_NONNULL_END
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKPollingStatus
Enumeration of polling statuses.
@ ZoomSDKPollingStatus_Started
@ ZoomSDKPollingStatus_Initial
@ ZoomSDKPollingStatus_Stopped
@ ZoomSDKPollingStatus_ShareResult
ZoomSDKPollingQuestionType
Enumeration of polling question types. For more information, please visit https://support....
@ ZoomSDKPollingQuestionType_LongAnswer
@ ZoomSDKPollingQuestionType_Unknown
@ ZoomSDKPollingQuestionType_Dropdown
@ ZoomSDKPollingQuestionType_ShortAnswer
@ ZoomSDKPollingQuestionType_Matching
@ ZoomSDKPollingQuestionType_RankOrder
@ ZoomSDKPollingQuestionType_Multi
@ ZoomSDKPollingQuestionType_Single
@ ZoomSDKPollingQuestionType_FillBlank
@ ZoomSDKPollingQuestionType_NPS
ZoomSDKPollingType
Enumeration of polling types.
@ ZoomSDKPollingType_Unknown
@ ZoomSDKPollingType_Quiz
@ ZoomSDKPollingType_Poll
ZoomSDKPollingActionType
Enumeration of polling action types.
@ ZoomSDKPollingActionType_Unknown
@ ZoomSDKPollingActionType_Duplicate
@ ZoomSDKPollingActionType_Stop
@ ZoomSDKPollingActionType_ShareResult
@ ZoomSDKPollingActionType_Error
@ ZoomSDKPollingActionType_Delete
@ ZoomSDKPollingActionType_Submit
@ ZoomSDKPollingActionType_StopShareResult
@ ZoomSDKPollingActionType_Start
Polling answer item interface.
NSString * pollingQuestionID
Polling question ID.
NSString * pollingAnsweredContent
Polling answered content.
NSString * pollingSubQuestionID
Polling sub-question ID.
NSString * pollingAnswerID
Polling answer ID.
BOOL isChecked
Determines if is checked.
NSString * pollingAnswerName
Polling answer name.
NSString * pollingID
Polling ID of answer item.
Polling answer result item interface.
NSString * pollingAnswerID
Polling answer ID.
NSString * pollingSubQuestionID
Polling sub-queston ID.
NSString * pollingQuestionID
Polling queston ID.
unsigned int selectedCount
Query how many participants selected this answer.
NSString * pollingID
Polling ID of answer result item.
NSString * pollingAnswerName
Polling answer name.
Polling controller interface.
BOOL canDoPolling()
Determines whether the current meeting can do the polling.
id< ZoomSDKPollingControllerDelegate > delegate
Delegate object to receive polling events.
NSArray< ZoomSDKPollingItem * > * getPollingItemList()
Gets the list of poll item.
id< ZoomSDKPollingControllerDelegate > _delegate
ZoomSDKError addPolling()
Opens create polling in a web browser.
ZoomSDKError downLoadResult()
Download all stopped poll's result from browser.
BOOL canAddPolling()
Determines if the host can add polling.
BOOL canDownloadResult()
Determines if the host can download poll's result from browser.
NSString * getActivePollingID()
Gets the active poll's ID.
Polling item interface.
ZoomSDKPollingStatus pollingStatus
Polling status.
NSString * pollingName
Polling name.
ZoomSDKPollingType pollingType
Polling type.
NSString * pollingID
Polling ID.
BOOL isLibraryPolling
Determines if is library polling.
unsigned int pollingQuestionCount
Polling question count.
unsigned int totalVotedUserCount
Count of total voted users.
Polling question item interface.
unsigned int answeredCount
The count of answered questions.
NSArray< ZoomSDKPollingQuestionItem * > * pollingSubQuestionItemList
Gets the list of polling question's subquestion.
NSString * pollingQuestionID
Polling question ID.
NSString * pollingID
Polling ID of question item.
BOOL isRequired
Determines if is required.
ZoomSDKPollingQuestionType pollingQuestionType
Polling question type.
NSArray< ZoomSDKPollingAnswerItem * > * pollingAnswerItemList
Gets the list of polling question or subquestion's answer.
NSString * pollingQuestionName
Polling question name.
void onPollingListUpdated()
Polling list updated callback. This is triggered when a host adds, edits, duplicates,...
void onPollingInactive()
Polling inactive callback. When the user starts a meeting in another device by same account,...