-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send data from custom MessageHolder to MessageActivity. #180
Comments
Hi, Is there any ideas or help for this issue ???? |
Hi @aalap03 , thanks for your request. It's very interesting question. Unfortunately you can't add callback to custom ViewHolder. I can't understand how we missed this functionality) In new version we will add this opportunity. I am working now on this task. |
Thanks for the response and library work, will eagerly wait for the update. |
ChatKit version 0.3.1 has been released. You can check this documentation. If documentation is not clear, please let me know. |
I tried and if I use the payload parameter in MessageHolderText constructor class, it crashes with error message
(Posted stack trace at the very end here.) Payload class with callback var
Callback interface
CustomHolder class If I take payload parameter out, the error will go.
And in my MessageActivity class I create MessageHolder like this
This is the stacktrace I get when I enter the MessageActivity class.
|
try to change |
It works.. !!!!!!! Bravo @bevzaanton Thanks a ton keep up the good work..!! |
please expalin "how cast object to Payload class in constructor." |
e.g. |
thanks @bevzaanton i got this error but iam already do "payload as Payload"
no more error. thanks |
So I have a custom
MessageHolder
classes for both texts and Images, from which I makeMessageHolders
variable which goes toMessagesListAdapter
.From an action inside
MessageHolderImage
class, I need to callmessageListAdapter.notifyDataSetChanged()
, but as per the structure I dont have any use ofMessageHolderImage
class's constructor, please let me know how to approach this.MessageActivity.class
MessageHolderImage.class and MessageHolderText.class (Same classes except image and text difference ofcourse)
Please tell me if I have a wrong approach or something can be modified here, Thanks in advance.
The text was updated successfully, but these errors were encountered: