flutter_network_connection

Last updated:

0 purchases

flutter_network_connection Image
flutter_network_connection Images
Add to Cart

Description:

flutter network connection

flutter_network_connection #
flutter 检测网络速度
引入插件 #
flutter_network_connection
flutter_network_connection: ^last_version

copied to clipboard
检测网络地址的速度数据 #
1.普通模式,默认返回全部检测数据
FlutterNetworkConnection.start('http://baidu.com');
copied to clipboard

返回特定类型的检测数据

FlutterNetworkConnection.startWithType('http://baidu.com',type:'Ping');
copied to clipboard
type可选的类型如下
val type: HttpType = when (typeString) {
"Index" -> HttpType.INDEX
"Ping" -> HttpType.PING
"Http" -> HttpType.HTTP
"Host" -> HttpType.HOST
"PortScan" -> HttpType.PORT_SCAN
"MtuScan" -> HttpType.MTU_SCAN
"TraceRoute" -> HttpType.TRACE_ROUTE
"NsLookup" -> HttpType.NSLOOKUP
"Net" -> HttpType.NET
else -> HttpType.PING
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.