Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ UI Customization/ Customizing the Social Sharing Window
Updated on 2024-09-13 GMT+08:00

Customizing the Social Sharing Window

- (NSView *)socialShareView:(HWMSDKMeetingInfoModel* )confInfo;

API Description

This API is used to block the meeting sharing window. After the setting, the sharing pop-up window of the SDK (shown in the following figure) will be blocked.

Figure 1 Sharing pop-up window

Precautions

  1. If the method is implemented, it will be called when you use the sharing function during a meeting. The SDK controls the position, display, and hiding of the window.

Sample Code

- (NSView *)socialShareView:(HWMSDKMeetingInfoModel *)meetingInfo {
    if (!self.socialView) {
        self.socialView =  [[HWMSocialView alloc] initWithFrame:NSMakeRect(0, 0, 500, 300)];
        self.socialView.wantsLayer = YES;
        self.socialView.layer.backgroundColor = [NSColor whiteColor].CGColor;
    }
    self.socialView.meetingInfo = meetingInfo;
    return self.socialView;
}

- (NSView *)socialShareView:(HWMConfStateInfo *)confInfo;

API Description

This API is used to block the meeting sharing window. After the setting, the sharing pop-up window of the SDK (shown in the following figure) will be blocked.

Figure 2 Sharing pop-up window

Precautions

  1. If the method is implemented, it will be called when you use the sharing function during a meeting. The SDK controls the position, display, and hiding of the window.

Sample Code

- (NSView *)socialShareView:(HWMConfStateInfo *)confDetail {
    if (!self.socialView) {
        self.socialView =  [[HWMSocialView alloc] initWithFrame:NSMakeRect(0, 0, 500, 300)];
        self.socialView.wantsLayer = YES;
        self.socialView.layer.backgroundColor = [NSColor whiteColor].CGColor;
    }
    self.socialView.confDetail = confDetail;
    return self.socialView;
}