Users represent users within your application. They are used to:
Each user should contain:
Create a participant by using its user ID, then optionally set display information:
User user = new User("USER_ID");
user.setName("Display name");
user.setAvatarUrl("https://example.com/avatar.png");
Get a user already stored in the local database by calling getUser(...) on the StringeeClient object:
User cachedUser = client.getUser("USER_ID");
To refresh one or more users from Stringee Server, call getUserInfo(...) on the StringeeClient object:
List<String> userIds = Collections.singletonList("USER_ID");
client.getUserInfo(userIds, new CallbackListener<List<User>>() {
@Override
public void onSuccess(List<User> users) {
}
@Override
public void onError(StringeeError error) {
}
});