Help Center/ Meeting/ Client SDK Reference/ iOS SDK/ API Reference/ UI Customization/ Customizing the Button of Adding a Virtual Background Image
Updated on 2024-12-27 GMT+08:00

Customizing the Button of Adding a Virtual Background Image

onClickAddVirtualBackgroundItem:

API Description

This API is used to customize the button of adding a virtual background image.

Precautions

None

Method Definition

1
- (void)onClickAddVirtualBackgroundItem:(void (^)(HWMVirtualBackgroundImageModel *))callback;

Parameter Description

Table 1 HWMVirtualBackgroundImageModel description

Parameter

Type

Description

imagePath

NSString *

Absolute image path. The PNG, JPG, and JPEG formats are supported. The maximum size is 4,096 x 4,096, and the minimum size is 160 x 160.

Return Values

None

Sample Code
1
2
3
4
5
/// Configure the callback when the button for customizing a virtual background is touched.
- (void)onClickAddVirtualBackgroundItem:(void (^)(HWMVirtualBackgroundImageModel * _Nonnull))callback {
    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    [self presentViewController:picker animated:YES completion:nil];
}