Join us for ⁠#Android11: The Beta Launch Show on June 3!
Added in API level R

NetworkRegistrationInfo

class NetworkRegistrationInfo : Parcelable
kotlin.Any
   ↳ android.telephony.NetworkRegistrationInfo

Description of a mobile network registration info

Summary

Constants

static Int

Circuit switched domain

static Int

Applicable to both CS and PS Domain

static Int

Packet switched domain

static Int

Unknown / Unspecified domain

static Int

The device is camped on an LTE cell that supports E-UTRA-NR Dual Connectivity(EN-DC) and also connected to at least one 5G cell as a secondary serving cell.

static Int

The device isn't camped on an LTE cell or the LTE cell doesn't support E-UTRA-NR Dual Connectivity(EN-DC).

static Int

The device is camped on an LTE cell that supports E-UTRA-NR Dual Connectivity(EN-DC) and both the use of dual connectivity with NR(DCNR) is not restricted and NR is supported by the selected PLMN.

static Int

The device is camped on an LTE cell that supports E-UTRA-NR Dual Connectivity(EN-DC) but either the use of dual connectivity with NR(DCNR) is restricted or NR is not supported by the selected PLMN.

static Int

Data service

static Int

Emergency service

static Int

SMS service

static Int

Unknown service

static Int

Video service

static Int

Voice service

Inherited constants

Public methods

Int

Boolean
equals(other: Any?)

Indicates whether some other object is "equal to" this one.

Int

MutableList<Int!>

CellIdentity?

Int

String?

Get the PLMN-ID for this Network Registration, also known as the RPLMN.

Int

Int

Boolean

Boolean

Boolean

String

Returns a string representation of the object.

Properties

static Parcelable.Creator<NetworkRegistrationInfo!>

Constants

DOMAIN_CS

Added in API level R
static val DOMAIN_CS: Int

Circuit switched domain

Value: 1

DOMAIN_CS_PS

Added in API level R
static val DOMAIN_CS_PS: Int

Applicable to both CS and PS Domain

Value: 3

DOMAIN_PS

Added in API level R
static val DOMAIN_PS: Int

Packet switched domain

Value: 2

DOMAIN_UNKNOWN

Added in API level R
static val DOMAIN_UNKNOWN: Int

Unknown / Unspecified domain

Value: 0

NR_STATE_CONNECTED

Added in API level R
static val NR_STATE_CONNECTED: Int

The device is camped on an LTE cell that supports E-UTRA-NR Dual Connectivity(EN-DC) and also connected to at least one 5G cell as a secondary serving cell.

Value: 3

NR_STATE_NONE

Added in API level R
static val NR_STATE_NONE: Int

The device isn't camped on an LTE cell or the LTE cell doesn't support E-UTRA-NR Dual Connectivity(EN-DC).

Value: 0

NR_STATE_NOT_RESTRICTED

Added in API level R
static val NR_STATE_NOT_RESTRICTED: Int

The device is camped on an LTE cell that supports E-UTRA-NR Dual Connectivity(EN-DC) and both the use of dual connectivity with NR(DCNR) is not restricted and NR is supported by the selected PLMN.

Value: 2

NR_STATE_RESTRICTED

Added in API level R
static val NR_STATE_RESTRICTED: Int

The device is camped on an LTE cell that supports E-UTRA-NR Dual Connectivity(EN-DC) but either the use of dual connectivity with NR(DCNR) is restricted or NR is not supported by the selected PLMN.

Value: 1

SERVICE_TYPE_DATA

Added in API level R
static val SERVICE_TYPE_DATA: Int

Data service

Value: 2

SERVICE_TYPE_EMERGENCY

Added in API level R
static val SERVICE_TYPE_EMERGENCY: Int

Emergency service

Value: 5

SERVICE_TYPE_SMS

Added in API level R
static val SERVICE_TYPE_SMS: Int

SMS service

Value: 3

SERVICE_TYPE_UNKNOWN

Added in API level R
static val SERVICE_TYPE_UNKNOWN: Int

Unknown service

Value: 0

SERVICE_TYPE_VIDEO

Added in API level R
static val SERVICE_TYPE_VIDEO: Int

Video service

Value: 4

SERVICE_TYPE_VOICE

Added in API level R
static val SERVICE_TYPE_VOICE: Int

Voice service

Value: 1

Public methods

describeContents

Added in API level R
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level R
fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object (x == y has the value true).

Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.

Parameters
obj the reference object with which to compare.
o This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getCellIdentity

Added in API level R
fun getCellIdentity(): CellIdentity?
Return
CellIdentity? The cell information. This value may be null.

getRegisteredPlmn

Added in API level R
fun getRegisteredPlmn(): String?

Get the PLMN-ID for this Network Registration, also known as the RPLMN.

If the device is registered, this will return the registered PLMN-ID. If registration has failed, then this will return the PLMN ID of the last attempted registration. If the device is not registered, or if is registered to a non-3GPP radio technology, then this will return null.

See 3GPP TS 23.122 for further information about the Registered PLMN.

Return
String? the registered PLMN-ID or null.

getTransportType

Added in API level R
fun getTransportType(): Int
Return
Int The transport type. Value is android.telephony.AccessNetworkConstants.TRANSPORT_TYPE_INVALID, android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WWAN, or android.telephony.AccessNetworkConstants#TRANSPORT_TYPE_WLAN

hashCode

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

isRegistered

Added in API level R
fun isRegistered(): Boolean
Return
Boolean true if registered on roaming network, false otherwise.

isRoaming

Added in API level R
fun isRoaming(): Boolean
Return
Boolean true if registered on roaming network, false otherwise.

isSearching

Added in API level R
fun isSearching(): Boolean
Return
Boolean true if registered on roaming network, false otherwise.

toString

Added in API level R
fun toString(): String

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

getClass().getName() + '@' + Integer.toHexString(hashCode())
  
Return
String This value cannot be null.

Properties

CREATOR

Added in API level R
static val CREATOR: Parcelable.Creator<NetworkRegistrationInfo!>