Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKShareContainer.h
Go to the documentation of this file.
1
6#import <ZoomSDK/ZoomSDKErrors.h>
7
8NS_ASSUME_NONNULL_BEGIN
13@protocol ZoomSDKShareElementDelegate <NSObject>
17- (void)onShareContentStartReceiving;
22- (void)onShareSourceNotify:(unsigned int)sharingID;
23
24@end
25
26
31@interface ZoomSDKShareElement : NSObject
32{
33 unsigned int _sharingID;
35 NSView* _shareView;
36 id<ZoomSDKShareElementDelegate> _delegate;
37 NSRect _frame;
38}
42@property(nonatomic, assign) unsigned int sharingID;
46@property(nonatomic, assign) ViewShareMode viewMode;
50@property(nonatomic, assign, nullable) NSView* shareView;
54@property(nonatomic, assign, nullable) id<ZoomSDKShareElementDelegate> delegate;
59- (id)initWithFrame:(NSRect)frame;
65- (ZoomSDKError)resize:(NSRect)frame;
71- (ZoomSDKError)ShowShareRender:(BOOL)show;
72@end
73
74
79@protocol ZoomSDKShareContainerDelegate <NSObject>
84- (void)onShareElementDestroy:(ZoomSDKShareElement*)element;
85@end
86
87
92@interface ZoomSDKShareContainer : NSObject
93{
94 NSMutableArray* _elementArray;
95 id<ZoomSDKShareContainerDelegate> _delegate;
96}
100@property(nonatomic, assign, nullable)id<ZoomSDKShareContainerDelegate> delegate;
106- (ZoomSDKError)createShareElement:(ZoomSDKShareElement*_Nullable*_Nonnull)element;
112- (ZoomSDKError)cleanShareElement:(ZoomSDKShareElement*)element;
117- (NSArray*_Nullable)getShareElementArray;
123- (ZoomSDKShareElement*_Nullable)getShareElementBySourceID:(unsigned int)shareSourceID;
124
125@end
126
127
132@protocol ZoomSDKShareActionDelegate <NSObject>
133@optional
137- (void)onSharingContentStartReceiving;
143- (void)onActionBeforeDestroyed:(unsigned int)sharingID;
144@end
145
146
151@interface ZoomSDKShareAction : NSObject
155@property(nonatomic,assign, nullable)id<ZoomSDKShareActionDelegate> delegate;
159@property(nonatomic, readonly, assign) unsigned int sharingID;
163@property(nonatomic, readonly, copy, nullable) NSString *sharingUserName;
167@property(nonatomic, readonly, assign, nullable) NSView* shareView;
171@property(nonatomic, readwrite, assign) ViewShareMode viewMode;
172
178
184
190- (ZoomSDKError)resize:(NSRect)frame;
191@end
192NS_ASSUME_NONNULL_END
ZoomSDKError
Enumeration of common errors of SDK.
ViewShareMode
Enumeration of video aspect modes.
Representing a share action, including subscription and rendering controls.
ZoomSDKError unsubscribe()
Unsubscribe from the sharing content.
ViewShareMode viewMode
The view mode for displaying the share content.
id< ZoomSDKShareActionDelegate > delegate
Delegate for share action events.
NSView * shareView
View for rendering the share content.
ZoomSDKError subscribe()
Subscribe to the sharing content.
unsigned int sharingID
Unique ID of the sharing action.
NSString * sharingUserName
Display name of the user sharing the content.
Container to manage all share elements.
id< ZoomSDKShareContainerDelegate > _delegate
The share element object to handle individual shared content and render view.
id< ZoomSDKShareElementDelegate > _delegate