Agora-Flutter-RTM-SDK icon indicating copy to clipboard operation
Agora-Flutter-RTM-SDK copied to clipboard

More Readable status and error codes

Open tadaspetra opened this issue 3 years ago • 3 comments

Screen Shot 2021-06-01 at 1 15 20 PM

Currently the API returns state and reason as an integer. It would be more readable to return a ConnectionState type and some with reason, so that it can be more readable. The if statement would look more like if(state == ConnectionState.aborted)

tadaspetra avatar Jun 01 '21 18:06 tadaspetra

good point, it will be optimized next version, but not so far.

LichKing-2234 avatar Jun 08 '21 01:06 LichKing-2234

Hello, I am struggle with this too. No document or error code. Just int and int

Dakrain avatar Aug 22 '21 07:08 Dakrain

you can follow the doc about android or ios.

LichKing-2234 avatar Aug 23 '21 02:08 LichKing-2234

The latest version supports readable status

LichKing-2234 avatar Jun 05 '23 02:06 LichKing-2234