Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quickblox Android sdk 2.0 Beta some classes missing

I am using QuickBlox android sdk 2.0 Beta and using sample chat app for reference.

But some classes used in app are not found in the sdk.

These classes are:

com.quickblox.module.chat.listeners.SessionListener ,

com.quickblox.module.chat.listeners.RoomListener,

com.quickblox.module.chat.listeners.ChatMessageListener,

com.quickblox.module.chat.utils.QBChatUtils ,

com.quickblox.module.chat.QBChatRoom and

com.quickblox.module.chat.smack.SmackAndroid etc.

Can someone provide the sdk with all classes or I have to wait for new sdk release. Is there any specific time for new sdk release?

like image 724
Rahul Chauhan Avatar asked Jul 10 '26 00:07

Rahul Chauhan


2 Answers

According to changes in SDK most of this classes were removed. You can start work with new chat after reading this:

  1. chat sample https://github.com/QuickBlox/quickblox-android-sdk/tree/new_api/sample-chat
  2. or snippets :https://github.com/QuickBlox/quickblox-android-sdk/blob/new_api/snippets/src/com/quickblox/snippets/modules/SnippetsChat.java.
  3. Or you can find information how to integrate new chat reading article about Chat2.0 feature :http://quickblox.com/developers/Chat#SDK.

Tha main changes are:

  • SessionListener was removed and replaced with QBEntittyCalbback when you invoke login method. In addition to this ConnectionListener was added to handle errors with connection during connection session.

  • RoomListener was removed cause it became uneccessary. To listen successfull result on creating or joining room you can use QBEntittyCallback or do this operations synchronous.

  • ChatMessageListener was removed and replaced with QBMessageListener on particular chat: QBPrivateChat or QBRoomChat.

  • QBChatRoom renamed to QBRoomChat.

  • classes like SmackAndroid aren't necessary more. All necessary initializations are invoked now in QBChatService class via init() and etc methods.

  • QBChatUtils was renamed to Utils and removed to com.quickblox.module.chat.utils package.
like image 128
vfite Avatar answered Jul 13 '26 14:07

vfite


Quickblox Chat 2.0 is out now. Prefer WebRTC based SDK

like image 34
Rahul Chauhan Avatar answered Jul 13 '26 14:07

Rahul Chauhan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!