Help Center/ Meeting/ Client SDK Reference/ iOS SDK/ API Reference/ UI Customization/ Customizing the Profile Picture Display
Updated on 2024-07-30 GMT+08:00

Customizing the Profile Picture Display

queryContactAvatarWithAccount:thirdUserId:number:completionBlock:

API Description

This API is used to customize the profile picture displayed in a meeting after login.

Figure 1 Effect of blocking the profile picture display

Precautions

  1. The profile picture of a user who has not logged in cannot be customized.

Method Definition

1
2
- (void)queryContactAvatarWithAccount:(NSString *)account thirdUserId:(NSString *)thirdUserId number:(NSString *)number
                     completionBlock:(void(^)(NSError * _Nullable error, UIImage * _Nullable avatarImage))completionBlock;

Parameter Description

Table 1

Parameter

Type

Description

account

NSString *

This parameter is preferentially used in the account and password login scenario.

thirdUserId

NSString *

This parameter is preferentially used in the app ID login scenario.

number

NSString *

This parameter is preferentially used in the cross-enterprise scenario.

Return Values

None

Sample Code
1
2
3
4
5
6
7
/// Block the profile picture display.
- (void)queryContactAvatarWithAccount:(NSString *)account thirdUserId:(NSString *)thirdUserId number:(nonnull NSString *)number
                      completionBlock:(void(^)(NSError * _Nullable error, UIImage * _Nullable avatarImage))completionBlock {
/// Set an image based on account or thirdUserId. The following code is an example.
    UIImage *image = [UIImage imageNamed:@"custom_conf_setting"];
    completionBlock(nil, image);
}