📜  检查网络是否计量 android - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.389000             🧑  作者: Mango

代码示例1
val cm = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val isMetered = cm.isActiveNetworkMetered()