Where can I find details on Listener callback in API

0 votes

General information regarding Unity3d API callbacks can be found at this page

http://appwarp.shephertz.com/game-development-center/unity3d-game-developers-home/unity3d-client-listener/#connectionrequestlistener

but, I cannot find any where where it details what kind of data I should be expecting.

For example, onConnectDone is a callback and you recieve a "ConnectEvent" from it. I see that I can use getResult() to get a byte from the ConnectEvent. But I have no idea what possible data I should expect from this. Is it a connection code? What are the values and meanings for the code?

asked Feb 19, 2015 in AppWarp by jonathan (16 points)

1 Answer

+1 vote
 
Best answer
Hi,

You get info about events here on this page http://appwarp.shephertz.com/game-development-center/unity3d-game-developers-home/unity3d-client-event

Regarding ConnectEvent, it has two methods, getResult() and getReasonCode(). Documentation only contains getResult() method because getReasonCode() was added recently. Hence it has to be updated in documentation. getResult() returns the result of request made. getReasonCode returns the reason when an Auth_Error occurs.

Thanks
answered Feb 19, 2015 by Suyash Mohan (900 points)
selected Feb 19, 2015 by jonathan
Thanks, the page led me to the page below that I hadn't seen before, and there was listed the error codes for getResult()

http://appwarp.shephertz.com/game-development-center/unity3d-game-developers-home/unity3d-client-result/#warpclient-event-result-codes
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...