-
- All Implemented Interfaces:
-
cz.mroczis.netmonster.core.feature.detect.INetworkDetector
public final class DetectorLteAdvancedNrDisplayInfo implements INetworkDetector
Attempts to detect LTE Advanced / LTE Carrier aggregation and NR in NSA mode
Based on TelephonyDisplayInfo's contents added in Android R.
NOTE: This detector relies on TelephonyDisplayInfo which means that detected network types might not be correct since TelephonyDisplayInfo returns data in accordance with carrier policy and branding preferences.
For more info refer to Android Reference.
-
-
Constructor Summary
Constructors Constructor Description DetectorLteAdvancedNrDisplayInfo()
-
Method Summary
Modifier and Type Method Description NetworkTypedetect(INetMonster netmonster, ITelephonyManagerCompat telephony)Performs search and detects current network type. -
-
Method Detail
-
detect
@RequiresPermission(allOf = {android.permission.ACCESS_COARSE_LOCATION, android.permission.READ_PHONE_STATE}) NetworkType detect(INetMonster netmonster, ITelephonyManagerCompat telephony)
Performs search and detects current network type. Returns null if search was not successful or not possible at this moment.
-
-
-
-