Setting the Profile Picture Style
setParticipantAvatarStyle:
API Description
This API is used to set the profile picture style of participants.
Precautions
- This API is optional. If it is not called, the default profile picture style is used.
Method Definition
- void setParticipantAvatarStyle(HWMAvatarStyle avatarStyle);
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
backgroundColor |
Yes |
int |
Background color. |
textColor |
Yes |
int |
Text color. |
nameShowType |
Yes |
NameShowType |
Name display style. |
avatarShape |
Yes |
AvatarShape |
Profile picture shape. |
phoneIcon |
Yes |
Bitmap |
Profile picture of PSTN users. |
boardIcon |
Yes |
Bitmap |
Profile picture of large display users. |
Enumerated Value |
Description |
---|---|
FIRST_LETTER |
For a Chinese name, the first letter in pinyin is displayed. For an English name, the first letter is displayed. |
FAMILY_NAME |
For a Chinese name, the family name is displayed. For an English name, the first letter is displayed. |
Enumerated Value |
Description |
---|---|
CIRCLE |
Circle. |
Return Values
Whether the API is successfully called.
Sample Code
HWMAvatarStyle style = new HWMAvatarStyle(backgroundColor, textColor, HWMAvatarStyle.NameShowType.FAMILY_NAME, HWMAvatarStyle.AvatarShape.CIRCLE); HWMBizSdk.getBizOpenApi().setParticipantAvatarStyle(style);
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