mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
91 lines
2.3 KiB
Java
91 lines
2.3 KiB
Java
package org.webrtc;
|
|
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface NetworkChangeDetector {
|
|
|
|
/* loaded from: classes3.dex */
|
|
public enum ConnectionType {
|
|
CONNECTION_UNKNOWN,
|
|
CONNECTION_ETHERNET,
|
|
CONNECTION_WIFI,
|
|
CONNECTION_5G,
|
|
CONNECTION_4G,
|
|
CONNECTION_3G,
|
|
CONNECTION_2G,
|
|
CONNECTION_UNKNOWN_CELLULAR,
|
|
CONNECTION_BLUETOOTH,
|
|
CONNECTION_VPN,
|
|
CONNECTION_NONE
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface Observer {
|
|
void onConnectionTypeChanged(ConnectionType connectionType);
|
|
|
|
void onNetworkConnect(NetworkInformation networkInformation);
|
|
|
|
void onNetworkDisconnect(long j);
|
|
|
|
void onNetworkPreference(List<ConnectionType> list, int i);
|
|
}
|
|
|
|
void destroy();
|
|
|
|
List<NetworkInformation> getActiveNetworkList();
|
|
|
|
ConnectionType getCurrentConnectionType();
|
|
|
|
boolean supportNetworkCallback();
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class IPAddress {
|
|
public final byte[] address;
|
|
|
|
private byte[] getAddress() {
|
|
return this.address;
|
|
}
|
|
|
|
public IPAddress(byte[] bArr) {
|
|
this.address = bArr;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class NetworkInformation {
|
|
public final long handle;
|
|
public final IPAddress[] ipAddresses;
|
|
public final String name;
|
|
public final ConnectionType type;
|
|
public final ConnectionType underlyingTypeForVpn;
|
|
|
|
private ConnectionType getConnectionType() {
|
|
return this.type;
|
|
}
|
|
|
|
private long getHandle() {
|
|
return this.handle;
|
|
}
|
|
|
|
private IPAddress[] getIpAddresses() {
|
|
return this.ipAddresses;
|
|
}
|
|
|
|
private String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
private ConnectionType getUnderlyingConnectionTypeForVpn() {
|
|
return this.underlyingTypeForVpn;
|
|
}
|
|
|
|
public NetworkInformation(String str, ConnectionType connectionType, ConnectionType connectionType2, long j, IPAddress[] iPAddressArr) {
|
|
this.name = str;
|
|
this.type = connectionType;
|
|
this.underlyingTypeForVpn = connectionType2;
|
|
this.handle = j;
|
|
this.ipAddresses = iPAddressArr;
|
|
}
|
|
}
|
|
}
|