Added in API level 17

CellSignalStrength


abstract class CellSignalStrength
kotlin.Any
   ↳ android.telephony.CellSignalStrength

Abstract base class for cell phone signal strength related information.

Summary

Constants
static Int

static Int

static Int

static Int

static Int

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.