Customizing the Profile Picture
API Description
This API is used to customize the profile picture displayed after login.
Precautions
The profile picture of a user who has not logged in cannot be customized.
Method Definition
1
|
public Bitmap queryContactAvatar(String account, String thirdUserId, String sipNumber) |
Parameter Description
Parameter |
Type |
Description |
---|---|---|
account |
String |
This parameter is preferentially used in the account and password login scenario. |
thirdUserId |
String |
This parameter is preferentially used in the app ID login scenario. |
sipNumber |
String |
This parameter is preferentially used in the cross-enterprise scenario. |
Return Values
Parameter |
Type |
Description |
---|---|---|
bitmap |
Bitmap |
Bitmap class of the profile picture. |
sdkConfig.setQueryContactInfoStrategy(new IQueryContactInfoStrategy() { @Override public Bitmap queryContactAvatar(String account, String thirdUserId, String sipNumber) { Log.i(TAG, "setQueryContactInfoStrategy account: " + account + " thirdUserId: " + thirdUserId + " sipNumber: " + sipNumber); // When a third party queries the address book, the profile picture of the corresponding user is returned. In the sample code, a default picture is returned. return BitmapFactory.decodeResource(resources, R.mipmap.ic_launcher); } });
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