Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKShareContainer.h
Go to the documentation of this file.
1
2// [Used for Customized UI]
3#import <ZoomSDK/ZoomSDKErrors.h>
4NS_ASSUME_NONNULL_BEGIN
5@protocol ZoomSDKShareElementDelegate <NSObject>
9- (void)onShareContentStartReceiving;
14- (void)onShareSourceNotify:(unsigned int)sharingID;
15
16@end
17
18@interface ZoomSDKShareElement : NSObject
19{
20 unsigned int _sharingID;
22 NSView* _shareView;
23 id<ZoomSDKShareElementDelegate> _delegate;
24 NSRect _frame;
25}
26@property(nonatomic, assign) unsigned int sharingID;
27@property(nonatomic, assign) ViewShareMode viewMode;
28@property(nonatomic, assign, nullable) NSView* shareView;
29@property(nonatomic, assign, nullable) id<ZoomSDKShareElementDelegate> delegate;
34- (id)initWithFrame:(NSRect)frame;
40- (ZoomSDKError)resize:(NSRect)frame;
46- (ZoomSDKError)ShowShareRender:(BOOL)show;
47@end
48
49@protocol ZoomSDKShareContainerDelegate <NSObject>
54- (void)onShareElementDestroy:(ZoomSDKShareElement*)element;
55@end
56
57@interface ZoomSDKShareContainer : NSObject
58{
59 NSMutableArray* _elementArray;
60 id<ZoomSDKShareContainerDelegate> _delegate;
61}
62@property(nonatomic, assign, nullable)id<ZoomSDKShareContainerDelegate> delegate;
68- (ZoomSDKError)createShareElement:(ZoomSDKShareElement*_Nullable*_Nonnull)element;
74- (ZoomSDKError)cleanShareElement:(ZoomSDKShareElement*)element;
79- (NSArray*_Nullable)getShareElementArray;
85- (ZoomSDKShareElement*_Nullable)getShareElementBySourceID:(unsigned int)shareSourceID;
86
87@end
88
89
90@protocol ZoomSDKShareActionDelegate <NSObject>
91@optional
95- (void)onSharingContentStartReceiving;
101- (void)onActionBeforeDestroyed:(unsigned int)sharingID;
102@end
103@interface ZoomSDKShareAction : NSObject
104@property(nonatomic,assign, nullable)id<ZoomSDKShareActionDelegate> delegate;
105@property(nonatomic, readonly, assign) unsigned int sharingID;
106@property(nonatomic, readonly, copy, nullable) NSString *sharingUserName;
107@property(nonatomic, readonly, assign, nullable) NSView* shareView;
108@property(nonatomic, readwrite, assign) ViewShareMode viewMode;
109
115
121
127- (ZoomSDKError)resize:(NSRect)frame;
128@end
129NS_ASSUME_NONNULL_END
ZoomSDKError
Enumeration of common errors of SDK.
ViewShareMode
Enumeration of video aspect modes.
ZoomSDKError unsubscribe()
Unsubscribe from the sharing content.
id< ZoomSDKShareActionDelegate > delegate
ZoomSDKError subscribe()
Subscribe to the sharing content.
id< ZoomSDKShareContainerDelegate > _delegate
id< ZoomSDKShareElementDelegate > _delegate