Added in API level 17

CellSignalStrength


abstract class CellSignalStrength
CellSignalStrengthCdma

Signal strength related information.

CellSignalStrengthGsm

GSM signal strength related information.

CellSignalStrengthLte

LTE signal strength related information.

CellSignalStrengthNr

5G NR signal strength related information.

CellSignalStrengthTdscdma

Tdscdma signal strength related information.

CellSignalStrengthWcdma

Wcdma signal strength related information.

Abstract base class for cell phone signal strength related information.

Summary

Public methods
abstract Boolean
equals(other: Any?)

abstract Int

Get the technology-specific signal strength in Arbitrary Strength Units, calculated from the strength of the pilot signal or equivalent.

abstract Int

Get the technology-specific signal strength in dBm, which is the signal strength of the pilot signal or equivalent.

abstract Int

Retrieve an abstract level value for the overall signal quality.

abstract Int

Constants

SIGNAL_STRENGTH_GOOD

Added in API level 23
static val SIGNAL_STRENGTH_GOOD: Int
Value: 3

SIGNAL_STRENGTH_GREAT

Added in API level 23
static val SIGNAL_STRENGTH_GREAT: Int
Value: 4

SIGNAL_STRENGTH_MODERATE

Added in API level 23
static val SIGNAL_STRENGTH_MODERATE: Int
Value: 2

SIGNAL_STRENGTH_NONE_OR_UNKNOWN

Added in API level 23
static val SIGNAL_STRENGTH_NONE_OR_UNKNOWN: Int
Value: 0

SIGNAL_STRENGTH_POOR

Added in API level 23
static val SIGNAL_STRENGTH_POOR: Int
Value: 1

Public methods

equals

Added in API level 17
abstract fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getAsuLevel

Added in API level 17
abstract fun getAsuLevel(): Int

Get the technology-specific signal strength in Arbitrary Strength Units, calculated from the strength of the pilot signal or equivalent.

getDbm

Added in API level 17
abstract fun getDbm(): Int

Get the technology-specific signal strength in dBm, which is the signal strength of the pilot signal or equivalent.

getLevel

Added in API level 17
abstract fun getLevel(): Int

Retrieve an abstract level value for the overall signal quality.

Return
Int a single integer from 0 to 4 representing the general signal quality. 0 represents very poor or unknown signal quality while 4 represents excellent signal quality. Value is between SIGNAL_STRENGTH_NONE_OR_UNKNOWN and SIGNAL_STRENGTH_GREAT inclusive

hashCode

Added in API level 17
abstract fun hashCode(): Int
Return
Int a hash code value for this object.