-
public final class DisplayInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumDisplayInfo.NetworkOverrideType
-
Field Summary
Fields Modifier and Type Field Description private final NetworkTypenetworkTypeprivate final DisplayInfo.NetworkOverrideTypeoverrideNetworkType
-
Constructor Summary
Constructors Constructor Description DisplayInfo(NetworkType networkType, DisplayInfo.NetworkOverrideType overrideNetworkType)
-
Method Summary
Modifier and Type Method Description final NetworkTypegetNetworkType()Current network type from telephony API. final DisplayInfo.NetworkOverrideTypegetOverrideNetworkType()Override network type giving more granular information about current connection. -
-
Constructor Detail
-
DisplayInfo
DisplayInfo(NetworkType networkType, DisplayInfo.NetworkOverrideType overrideNetworkType)
-
-
Method Detail
-
getNetworkType
final NetworkType getNetworkType()
Current network type from telephony API.
-
getOverrideNetworkType
final DisplayInfo.NetworkOverrideType getOverrideNetworkType()
Override network type giving more granular information about current connection. Works just for LTE and NR networks.
Note that this is so-called marketing network type. It can be adjusted by manufacturer or carrier to emulate different network type. In most of the cases they intend to show 5G even when it's not in use, but only deployed on site.
Do not use this field as source of truth whilst detecting 5G.
-
-
-
-