Updated on 2024-09-13 GMT+08:00

Customizing Social Sharing

shareConf:isAnonymous:inCtrl

API Description

This API is used to block meeting sharing. After the setting, the default 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 shareConf:isAnonymous:inCtrl method is implemented, it will be called when you try to use the sharing function in a meeting.
  2. In addition, the SDK internal sharing UI and meeting QR code will not be displayed. In this case, getShareLogoImages and getBrandName settings are invalid.

Method Definition

1
- (void)shareConf:(HWMConfDetail *)confInfo isAnonymous:(BOOL)isAnonymous inCtrl:(UIViewController *)controller;

Parameter Description

Table 1 Parameter description

Parameter

Type

Description

confInfo

HWMConfDetail *

Meeting information.

isAnonymous

BOOL

Whether to join the meeting anonymously.

controller

UIViewController *

View controller. The custom sharing page can be displayed on the controller for the access party.

Table 2 HWMConfDetail description

Parameter

Type

Description

confId

NSString *

Meeting ID.

confSubject

NSString *

Meeting topic.

accessNumber

NSString *

Meeting access code.

chairmanPwd

NSString *

Host password.

generalPwd

NSString *

Guest password.

startTime

NSString *

Meeting start time.

endTime

NSString *

Meeting end time.

Return Values

None

Sample Code

1
2
3
4
5
6
7
8
/// After the setting takes effect, the SDK internal sharing pop-up window will be blocked.
- (void)shareConf:(HWMConfDetail *)confInfo isAnonymous:(BOOL)isAnonymous inCtrl:(UIViewController *)controller {
    NSLog(@"enter share conf");
    ShareView *shareView = [[ShareView alloc] init];
    [shareView showShareView:^(NSInteger index) {
        [UIUtil showMessage:[NSString stringWithFormat:@" Click button {xx}.", index + 1]];
    }];
}

getShareLogoImages

API Description

This API is used to set a logo on the meeting QR code sharing page.

Figure 2 Customizing a logo on the meeting QR sharing page

Precautions

  1. The logo array contains one logo.
  2. The getShareLogoImages method cannot coexist with the shareConf:isAnonymous:inCtrl method. If they coexist, the getShareLogoImages method does not take effect.

Method Definition

1
- (NSArray <UIImage *>*)getShareLogoImages;

Parameter Description

Parameter

Type

Description

getShareLogoImages

NSArray <UIImage *>*

Logo array on the meeting QR code sharing page.

Return Values

None

Sample Code

1
2
3
4
5
/// Set a logo array (containing one logo) on the meeting QR code sharing page.
-(NSArray<UIImage *> *)getShareLogoImages {
    UIImage * image = [UIImage imageNamed:@""];
    return @[image];
}

getBrandName

API Description

This API is used to set a brand name on the meeting QR code sharing page.

Figure 3 Customizing a brand name on the meeting QR code sharing page

Precautions

  1. The getBrandName method cannot coexist with the shareConf:isAnonymous:inCtrl method. If they coexist, the getBrandName method does not take effect.

Method Definition

1
- (NSString *)getBrandName;

Parameter Description

Parameter

Type

Description

getBrandName

NSString *

Brand name on the meeting QR code sharing page.

Return Values

None

Sample Code

1
2
3
4
/// Set a brand name on the meeting QR code sharing page.
- (NSString *)getBrandName {
    return @"Integrated brand name";
}