Updated on 2024-07-30 GMT+08:00

Deleting a Profile Picture

DeleteSelfAvatar

API Description

This API is used to delete a customized profile picture.

Precautions

  1. Call this API only when you have logged in.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode DeleteSelfAvatar();

Callback Function

1
virtual void OnDeleteSelfAvatarResult(hwmsdk::HwmErrCode ret, const char* reason) {};

1
2
3
4
5
6
7
8
9
/**
* Delete a profile picture.
*/
int demoUploadSelfAvatarDlg::DeleteSelfAvatar()
{
    // Call the API for deleting a profile picture.
    int ret = hwmsdkagent::DeleteSelfAvatar();
    return ret;
}