Added in API level 17

CellIdentityGsm

class CellIdentityGsm : CellIdentity
kotlin.Any
   ↳ android.telephony.CellIdentity
   ↳ android.telephony.CellIdentityGsm

CellIdentity to represent a unique GSM cell

Summary

Inherited constants
Public methods
Boolean
equals(other: Any?)

MutableSet<String!>

Int

Int

Int

Int

Int

String?

Int

String?

String?

Int

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Implement the Parcelable interface

Inherited functions
Properties
static Parcelable.Creator<CellIdentityGsm!>

Implement the Parcelable interface

Public methods

equals

Added in API level 17
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.

getAdditionalPlmns

Added in API level 30
fun getAdditionalPlmns(): MutableSet<String!>
Return
MutableSet<String!> a list of additional PLMN IDs supported by this cell. This value cannot be null.

getArfcn

Added in API level 24
fun getArfcn(): Int
Return
Int 16-bit GSM Absolute RF Channel Number, UNAVAILABLE if unavailable.

getBsic

Added in API level 24
fun getBsic(): Int
Return
Int 6-bit Base Station Identity Code, UNAVAILABLE if unavailable.

getCid

Added in API level 17
fun getCid(): Int
Return
Int 16-bit GSM Cell Identity described in TS 27.007, 0..65535, UNAVAILABLE if unavailable.

getLac

Added in API level 17
fun getLac(): Int
Return
Int 16-bit Location Area Code, 0..65535, UNAVAILABLE if unavailable.

getMcc

Added in API level 17
Deprecated in API level 28
fun getMcc(): Int

Deprecated: Use getMccString instead.

Return
Int 3-digit Mobile Country Code, 0..999, UNAVAILABLE if unavailable.

getMccString

Added in API level 28
fun getMccString(): String?
Return
String? Mobile Country Code in string format, null if unavailable.

getMnc

Added in API level 17
Deprecated in API level 28
fun getMnc(): Int

Deprecated: Use getMncString instead.

Return
Int 2 or 3-digit Mobile Network Code, 0..999, UNAVAILABLE if unavailable.

getMncString

Added in API level 28
fun getMncString(): String?
Return
String? Mobile Network Code in string format, null if unavailable.

getMobileNetworkOperator

Added in API level 28
fun getMobileNetworkOperator(): String?
Return
String? a 5 or 6 character string (MCC+MNC), null if any field is unknown.

getPsc

Added in API level 17
Deprecated in API level 18
fun getPsc(): Int

Deprecated: Primary Scrambling Code is not applicable to GSM.

Return
Int UNAVAILABLE - undefined for GSM

hashCode

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

toString

Added in API level 17
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 17
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Implement the Parcelable interface

Parameters
dest Parcel: The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 17
static val CREATOR: Parcelable.Creator<CellIdentityGsm!>

Implement the Parcelable interface