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.
Precautions
- 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
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
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); } |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot