Modifier and Type | Method and Description |
---|---|
static SystemUserInfo |
getInstance()
Gets the unique instance of system user info.
|
void |
setAbbreviation(String abbreviation)
Sets the user's abbreviation.
|
void |
setColorIndex(int colorIndex)
Sets the user's color index.
|
void |
setImage(String imageUrl)
Sets the url of the user's image.
|
void |
setName(String name)
Sets the user's name.
|
equals, getAbbreviation, getColorIndex, getId, getImage, getName, hashCode
public static SystemUserInfo getInstance()
null
public void setName(String name)
UserInfo
public void setAbbreviation(String abbreviation)
UserInfo
setAbbreviation
in class UserInfo
abbreviation
- the abbreviation to setpublic void setImage(String imageUrl)
UserInfo
If this user info is given to a CollaborationAvatarGroup
, the
image URL is used to load the user's avatar. Alternatively, the user
images can be loaded from a backend to the avatar group with
CollaborationAvatarGroup.setImageProvider(ImageProvider)
.
public void setColorIndex(int colorIndex)
UserInfo
Setting it to -1 (which is the default value) indicates that the user color can be automatically assigned by Collaboration Engine.
setColorIndex
in class UserInfo
colorIndex
- the color index to setUserInfo.getColorIndex()
Copyright © 2022. All rights reserved.