Skip to content
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

SendInstantMessageParam.setUserData() requires SWIGTYPE_p_void, which has protected access #4242

Open
YogatBear opened this issue Jan 6, 2025 · 0 comments

Comments

@YogatBear
Copy link

YogatBear commented Jan 6, 2025

Describe the feature

In my app, I want to be able to track if a message has been received by the other client. I am using Account.onInstantMessageStatus() to receive the status code from the server, but I also needed a way to know for which message the status belongs to. I then came across SendInstantMessageParam.setUserData(), which seems to be exactly what I need. However, I see that I cannot create the SWIGTYPE_p_void object without altering the source code.

I am not too familiar with SWIG and the reasoning for not being able to use SendInstantMessageParam.setUserData()out the box, but I noticed that changing the constructors to public works, and OnInstantMessageStatusParam.getUserData() returns the data correctly.

Describe alternatives you've considered

If there is an alternative solution for tracking which instant message the status callback belongs to, I would appreciate that as well!

Additional context

PJSUA2 2.14 on Java Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant