pwittchen / ReactiveNetwork

Android library listening network connection state and Internet connectivity with RxJava Observables
http://pwittchen.github.io/ReactiveNetwork/docs/RxJava2.x/
Apache License 2.0
2.53k stars 276 forks source link

How know which connection type is better ? #456

Open TienHai opened 3 years ago

TienHai commented 3 years ago

Hi,

First, thanks for your job, it what a need !

If we have WIFI and Mobile, how we know which best? Can we have an Observable on this state ?

Thanks

pwittchen commented 3 years ago

Hi,

Library cannot give you information, which type of connection is the best. You can extract some details regarding NetworkState and figure out the connection quality basing on that information. I'm not sure if it's possible, but you can try to test it.

Regards, Piotr