Configuring a Profile Picture
Function
This API is used to configure the profile picture information.
Function Prototype
setAvatar(avatarInfo: AvatarInfo, onSetAvatarResult?: (ret: SDKERR, reason: string) => void): voidsetAvatar(avatarInfo: AvatarInfo, onSetAvatarResult?: (ret: SDKERR, reason: string) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
avatarInfo | Yes | AvatarInfo | Profile picture information. |
onSetAvatarResult | Yes | (ret: SDKERR, reason: string) => void | Callback of configuring the profile picture. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
number | Yes | string | Number. |
avatarPath | Yes | string | Profile picture path. |
Return Values
void
Callback Method Parameters
(ret: SDKERR, reason: string) => void
Parameter | Type | Description |
---|---|---|
ret | For details about SDKERR, see Error Code Reference. | Error code. |
reason | string | Error description. |
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