Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKCloseCaptionController.h
Go to the documentation of this file.
1
7#import <Foundation/Foundation.h>
8#import <ZoomSDK/ZoomSDKErrors.h>
9
10NS_ASSUME_NONNULL_BEGIN
17@interface ZoomSDKCCRequestHandler : NSObject
21@property (nonatomic, assign, readonly) unsigned int senderUserID;
22
26@property (nonatomic, assign, readonly) BOOL isRequestTranslationOn;
32@end
33
34
44- (ZoomSDKError)approveStartCaptionsRequest;
45@end
46
57- (ZoomSDKError)approveStartCaptionsRequest:(int)languageID;
58@end
59
68@property (nonatomic, copy, readonly, nullable) NSString *messageID;
69
73@property (nonatomic, assign, readonly) unsigned int speakerID;
74
78@property (nonatomic, copy, readonly, nullable) NSString *speakerName;
79
83@property (nonatomic, copy, readonly, nullable) NSString *messageContent;
84
88@property (nonatomic, assign, readonly) time_t timeStamp;
89
93@property (nonatomic, assign, readonly) ZoomSDKLiveTranscriptionOperationType messageType;
94
95@end
96
97
106@property(nonatomic, assign, readonly) int languageID;
110@property(nonatomic, copy, readonly, nullable) NSString* languageName;
111@end
112
113
118@protocol ZoomSDKCloseCaptionControllerDelegate <NSObject>
119@optional
120
124- (void)onGetCCPrivilege;
125
129- (void)onLostCCPrivilege;
130
137- (void)onReceiveCCMessageWithString:(NSString*)inString senderID:(unsigned int)senderID;
138
143- (void)onReceiveCCRealtimeMessage:(NSString *)realtimeMessage;
144
149- (void)onLiveTranscriptionStatus:(ZoomSDKLiveTranscriptionStaus)status;
150
155- (void)onLiveTranscriptionMsgInfoReceived:(ZoomSDKLiveTranscriptionMessageInfo*_Nullable)messageInfo;
156
161- (void)onOriginalLanguageMsgReceived:(ZoomSDKLiveTranscriptionMessageInfo*_Nullable)messageInfo;
162
168- (void)onLiveTranscriptionMsgError:(ZoomSDKLiveTranscriptionLanguage*_Nullable)spokenLanguage transcriptLanguage:(ZoomSDKLiveTranscriptionLanguage*_Nullable)transcriptLanguage;
169
176- (void)onRequestForLiveTranscriptReceived:(unsigned int)requesterID anonymous:(BOOL)bAnonymous;
177
182- (void)onRequestLiveTranscriptionStatusChange:(BOOL)bEnabled;
183
188- (void)onCaptionStatusChanged:(BOOL)enable;
189
194- (void)onStartCaptionsRequestReceived:(ZoomSDKCCRequestHandler *)handler;
195
199- (void)onStartCaptionsRequestApproved;
200
205- (void)onManualCaptionStatusChanged:(BOOL)bEnabled;
206
211- (void)onSpokenLanguageChanged:(ZoomSDKLiveTranscriptionLanguage*_Nullable)spokenLanguage;
212@end
213
214
219@interface ZoomSDKCloseCaptionController : NSObject
220{
221 id<ZoomSDKCloseCaptionControllerDelegate> _delegate;
222}
223
227@property(nonatomic, assign, nullable)id<ZoomSDKCloseCaptionControllerDelegate> delegate;
228
233- (BOOL)isMeetingSupportCloseCaption;
234
239- (BOOL)canAssignOthersToSendCC;
240
246- (BOOL)canBeAssignedToSendCC:(unsigned int)userID;
247
252- (BOOL)canSendClosedCaption;
253
258- (BOOL)isCanSaveClosedCaption;
259
264- (BOOL)is3rdPartCCServerAvailable;
265
271- (ZoomSDKError)withdrawCCPrivilegeForUser:(unsigned int)userID;
272
278- (ZoomSDKError)assignCCPrivilegeTo:(unsigned int)userID;
279
285- (ZoomSDKError)sendClosedCaptionMessage:(NSString*)ccString;
286
291- (ZoomSDKError)saveCCHistory;
292
297- (NSString*)getClosedCaptionHistorySavedPath;
298
304- (ZoomSDKError)getClosedCaptionUrlFor3rdParty:(NSString*_Nullable*_Nonnull)thirdPartyURL;
305
310- (BOOL)isLiveTranscriptLegalNoticeAvailable;
311
316- (NSString *)getLiveTranscriptLegalNoticesPrompt;
317
322- (NSString *)getLiveTranscriptLegalNoticesExplained;
323
328- (BOOL)isLiveTranscriptionFeatureEnabled;
329
334- (BOOL)isMultiLanguageTranscriptionEnabled;
335
340- (BOOL)isTextLiveTranslationEnabled;
341
346- (ZoomSDKLiveTranscriptionStaus)getLiveTranscriptionStatus;
347
352- (ZoomSDKError)canStartLiveTranscription;
353
359- (ZoomSDKError)startLiveTranscription;
360
366- (ZoomSDKError)stopLiveTranscription;
367
374- (ZoomSDKError)enableRequestLiveTranscription:(BOOL)bEnable;
375
381- (ZoomSDKError)isRequestToStartLiveTranscriptionEnabled;
382
389- (ZoomSDKError)requestToStartLiveTranscription:(BOOL)bAnonymous;
390
396- (ZoomSDKError)enableMeetingManualCaption:(BOOL)bEnable;
397
402- (BOOL)isMeetingManualCaptionEnabled;
403
408- (NSArray<ZoomSDKLiveTranscriptionLanguage*>*)getAvailableMeetingSpokenLanguages;
409
416- (ZoomSDKError)setMeetingSpokenLanguage:(int)languageID DEPRECATED_MSG_ATTRIBUTE("Use -setMeetingSpokenLanguage:isForAll: instead");
417
424- (ZoomSDKError)setMeetingSpokenLanguage:(int)languageID isForAll:(BOOL)isForAll;
425
430- (ZoomSDKLiveTranscriptionLanguage*)getMeetingSpokenLanguage;
431
436- (NSArray<ZoomSDKLiveTranscriptionLanguage*>*)getAvailableTranslationLanguages;
437
443- (ZoomSDKError)setTranslationLanguage:(int)languageID;
444
449- (ZoomSDKLiveTranscriptionLanguage*)getTranslationLanguage;
450
455- (ZoomSDKError)enableReceiveSpokenLanguageContent:(BOOL)enable;
456
461- (BOOL)isReceiveSpokenLanguageContentEnabled;
462
467- (BOOL)canDisableCaptions;
468
474- (ZoomSDKError)enableCaptions:(BOOL)enable;
475
480- (BOOL)isCaptionsEnabled;
481
486- (BOOL)isSupportRequestCaptions;
487
492- (BOOL)isSupportTranslationWhenRequestToStartCaptions;
493
499- (ZoomSDKError)requestToStartCaptions:(BOOL)enableTranslation;
500@end
501NS_ASSUME_NONNULL_END
ZoomSDKLiveTranscriptionStaus
Enumeration of live transcription status in a meeting.
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKLiveTranscriptionOperationType
Enumeration of live transcription operation types.
The helper to handle the requested of start captions.
ZoomSDKError deny()
Deny the request to start captions.
unsigned int senderUserID
The user ID of the user who send the start captions request.
Subclass of ZoomSDKCCRequestHandler for requests without translation.
Subclass of ZoomSDKCCRequestHandler for requests with translation enabled.
Controller interface to manage closed captions and live transcription in meetings.
id< ZoomSDKCloseCaptionControllerDelegate > _delegate
Represents a language supported for live transcription.
Interface representing a live transcription message.