You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
21 lines
531 B
Java
21 lines
531 B
Java
package android.net;
|
|
|
|
public class ConnectivityManager {
|
|
|
|
public class NetworkCallback {}
|
|
|
|
public NetworkInfo getNetworkInfo(int networkType) {
|
|
return null; // this means the network type is not supported, which should make properly coded apps cease any attempts to use network-related APIs
|
|
}
|
|
|
|
public NetworkInfo getActiveNetworkInfo() {
|
|
return new NetworkInfo();
|
|
}
|
|
|
|
public void registerNetworkCallback(NetworkRequest request, NetworkCallback callback) {}
|
|
|
|
public boolean isActiveNetworkMetered() {
|
|
return false;
|
|
}
|
|
}
|