◆ setNickname()
void setNickname |
( |
String |
nickname | ) |
|
|
inline |
Set the nickname (one can set it for oneself only)
- Parameters
-
◆ setFaceUrl()
void setFaceUrl |
( |
String |
faceUrl | ) |
|
|
inline |
Set the profile photo (one can set it for oneself only)
- Parameters
-
◆ getSelfSignature()
String getSelfSignature |
( |
| ) |
|
|
inline |
Get the signature
- Returns
- Signature
◆ setSelfSignature()
void setSelfSignature |
( |
String |
selfSignature | ) |
|
|
inline |
Set the signature (one can set it for oneself only)
- Parameters
-
◆ getGender()
Get the gender:
- V2TIM_GENDER_UNKNOWN: unknown
- V2TIM_GENDER_MALE: male
- V2TIM_GENDER_FEMALE: female
- Returns
- Gender
◆ setGender()
void setGender |
( |
int |
gender | ) |
|
|
inline |
Set the gender (one can set it for oneself only)
- V2TIM_GENDER_UNKNOWN: unknown
- V2TIM_GENDER_MALE: male
- V2TIM_GENDER_FEMALE: female
- Parameters
-
◆ getRole()
◆ setRole()
◆ getLevel()
◆ setLevel()
void setLevel |
( |
int |
level | ) |
|
|
inline |
◆ getAllowType()
Get the friend verification method
- V2TIM_FRIEND_ALLOW_ANY
- V2TIM_FRIEND_DENY_ANY
- V2TIM_FRIEND_NEED_CONFIRM
- Returns
- Verification method
◆ setAllowType()
void setAllowType |
( |
int |
allowType | ) |
|
|
inline |
Set the friend verification method (one can set it for oneself only)
- V2TIM_FRIEND_ALLOW_ANY
- V2TIM_FRIEND_DENY_ANY
- V2TIM_FRIEND_NEED_CONFIRM
- Parameters
-
◆ setCustomInfo()
void setCustomInfo |
( |
HashMap< String, byte[]> |
customHashMap | ) |
|
|
inline |
Set a custom field
- Attention
- First, you need to set the custom friend field in the console (Feature Configuration -> Custom User Field). Then, you need to call this API to set the custom friend field. The value of key does not need the Tag_Profile_Custom_ prefix.
- Parameters
-
customHashMap | Custom field hashMap |
◆ getCustomInfo()
HashMap<String, byte[]> getCustomInfo |
( |
| ) |
|
|
inline |
Get custom fields
- Returns
- Custom field hashMap
◆ toString()
◆ getUserID()
Get the user ID
- Returns
- User ID
◆ getNickName()
Get the user nickname
- Returns
- Nickname
◆ getFaceUrl()
Get the profile photo URL of a user
- Returns
- Profile photo URL
◆ getBirthday()
Get the user's birthday
- Returns
- Birthday, in the format such as 19700101
◆ setBirthday()
void setBirthday |
( |
long |
birthday | ) |
|
|
inlineinherited |
Set the user's birthday
@birthday Birthday, in the format such as 19700101
◆ PROFILE_TYPE_KEY_NICK
final String PROFILE_TYPE_KEY_NICK = UserInfo.USERINFO_KEY_NICK |
|
static |
◆ PROFILE_TYPE_KEY_FACEURL
final String PROFILE_TYPE_KEY_FACEURL = UserInfo.USERINFO_KEY_FACEURL |
|
static |
◆ PROFILE_TYPE_KEY_ALLOWTYPE
final String PROFILE_TYPE_KEY_ALLOWTYPE = UserInfo.USERINFO_KEY_ALLOWTYPE |
|
static |
◆ PROFILE_TYPE_KEY_GENDER
final String PROFILE_TYPE_KEY_GENDER = UserInfo.USERINFO_KEY_GENDER |
|
static |
◆ PROFILE_TYPE_KEY_SELF_SIGNATURE
final String PROFILE_TYPE_KEY_SELF_SIGNATURE = UserInfo.USERINFO_KEY_SELF_SIGNATURE |
|
static |
◆ PROFILE_TYPE_KEY_CUSTOM_PREFIX
final String PROFILE_TYPE_KEY_CUSTOM_PREFIX = UserInfo.USERINFO_KEY_CUSTOM_PREFIX |
|
static |
◆ V2TIM_FRIEND_ALLOW_ANY
final int V2TIM_FRIEND_ALLOW_ANY = 0 |
|
static |
Automatically accept all new friend requests
◆ V2TIM_FRIEND_NEED_CONFIRM
final int V2TIM_FRIEND_NEED_CONFIRM = 1 |
|
static |
Friend request verification is required
◆ V2TIM_FRIEND_DENY_ANY
final int V2TIM_FRIEND_DENY_ANY = 2 |
|
static |
Automatically reject all new friend requests
◆ V2TIM_GENDER_UNKNOWN
final int V2TIM_GENDER_UNKNOWN = 0 |
|
static |
Unknown gender
◆ V2TIM_GENDER_MALE
final int V2TIM_GENDER_MALE = 1 |
|
static |
Male
◆ V2TIM_GENDER_FEMALE
final int V2TIM_GENDER_FEMALE = 2 |
|
static |
Female