What I am trying to do::
I am trying to catch t
As far as I know, I don't think Retrofit supports 'connectivity checking in call time' and I don't think that is exactly what you want.
Try to check connectivity before your call, for example,
private void sendData() {
if( isConnected ) {
switch(call) {
case "userSignIn":
Call !
break;
...
}
}
Maybe you can check this solution too