Cannot resolve symbol 'CometChatUserListScreen'

Is this supposed to be an import? I cannot figure out why it is not working.

The errors I keep getting are:

hello @kadur1 ,

i have looked in your issue. can you help me understand which java UI kit you are using.
you can find the latest UiKit and sample app in the link given below.
JAVA UIKIT - UIKit

JAVA SAMPLE CHAT APP - ChatApp

please refer the documentation for the above mention UIKit

DOCUMENTATION - Docs

Redards,
Vivek

1 Like

I was using the UIKit provided from https://www.cometchat.com/docs/java-chat-ui-kit/overview. Is this not the same in the JAVA UIKIT - UIKit you provided?

Hello @kadur1 ,

There is no CometChatUserListScreen file available in UI Kit library. We suggest you to replace CometChatUserListScreen with CometChatUserList.
Please check below code snippet for reference.

CometChatUserList.setItemClickListener(new OnItemClickListener<User>()
            {
                @Override
                public void OnItemClick(User user, int position) {
                		//Perform Your Action
                }

                @Override
                public void OnItemLongClick(User var, int position) {
                    super.OnItemLongClick(var, position);
                }
            });

Also, we suggest you to please check below documentation link for reference.
https://www.cometchat.com/docs/java-chat-ui-kit/android-java-ui-components#cometchatuserlist

1 Like

Hi, @kadur1
Hope you are doing well.

Hope this was helpful! I am closing out this ticket due to inactivity. Please feel free to write to us at help@cometchat.com if you require any further assistance.

Regards,
Aishwarya

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.