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 | |
abstract Int |
Get the technology-specific signal strength in Arbitrary Strength Units, calculated from the strength of the pilot signal or equivalent. |
abstract Int |
getDbm() Get the technology-specific signal strength in dBm, which is the signal strength of the pilot signal or equivalent. |
abstract Int |
getLevel() Retrieve an abstract level value for the overall signal quality. |
abstract Int |
hashCode() |
Constants
SIGNAL_STRENGTH_NONE_OR_UNKNOWN
static val SIGNAL_STRENGTH_NONE_OR_UNKNOWN: Int
Value: 0
Public methods
equals
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
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
abstract fun getDbm(): Int
Get the technology-specific signal strength in dBm, which is the signal strength of the pilot signal or equivalent.
getLevel
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
abstract fun hashCode(): Int
Return | |
---|---|
Int |
a hash code value for this object. |