android 网络质量监控,Network Connection Class 监听App中当前网络的流量然后对网络质量进行分类...

Network Connection Class是一个Android库,用于评估用户当前互联网连接的质量。它通过监听应用产生的网络流量,将连接质量分为多个类别,方便开发者据此调整应用行为。目前,该库仅测量下行带宽,但可以通过移动平均值和滞后机制处理瞬时波动。开发者可以注册监听器以获取网络质量变化通知,或手动查询当前连接质量。DeviceBandwidthSampler用于在进行网络活动时采样设备的网络统计信息。
摘要由CSDN通过智能技术生成

2d3997f1097da7d69233236c3eb86ab6.png Network Connection Class

Network Connection Class is an Android library that allows you to figure out the quality of the current user's internet connection. The connection gets classified into several "Connection Classes" that make it easy to develop against. The library does this by listening to the existing internet traffic done by your app and notifying you when the user's connection quality changes. Developers can then use this Connection Class information and adjust the application's behaviour (request lower quality images or video, throttle type-ahead, etc).

Network Connection Class currently only measures the user's downstream bandwidth. Latency is also an important factor, but in our tests, we've found that bandwidth is a good proxy for both.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值