设置头像风格
setParticipantAvatarStyle
接口描述
该接口用于设置头像风格。
注意事项
无
方法定义
1
|
setParticipantAvatarStyle(avatarStyle?: HWMAvatarStyle): void; |
参数描述
参数 |
是否必须 |
类型 |
描述 |
---|---|---|---|
avatarStyle |
是 |
HWMAvatarStyle |
头像信息。 |
参数 |
是否必须 |
类型 |
描述 |
---|---|---|---|
backgroundColor |
是 |
string |
背景色。 |
textColor |
是 |
string |
文字颜色。 |
nameShowType |
是 |
HWMNameShowType |
姓名显示风格。 |
avatarShape |
是 |
HWMAvatarShape |
头像形状。 |
boardIconPath |
是 |
PixelMap | ResourceStr | DrawableDescriptor | ImageContent | number |
大屏图标路径。 |
phoneIconPath |
是 |
PixelMap | ResourceStr | DrawableDescriptor | ImageContent | number |
手机图标路径。 |
1 2 3 4 5 6 7 8 9 |
const avatarStyle: HWMAvatarStyle = { backgroundColor: this.getBackgroundColor(), textColor: this.getTextColor(), nameShowType: this.getNameShowType(), avatarShape: this.getAvatarShape(), boardIconPath: this.getBoardIconPath(), phoneIconPath: this.getPhoneIconPath() } UISDK.getUIOpenApi().setParticipantAvatarStyle(avatarStyle); |