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 |
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 |
hashCode() |
| Boolean | |
| Boolean | |
| Boolean | |
| String |
toString()Returns a string representation of the object. |
Properties |
|
|---|---|
| static Parcelable.Creator<NetworkRegistrationInfo!> | |
Constants
DOMAIN_CS_PS
static val DOMAIN_CS_PS: Int
Applicable to both CS and PS Domain
Value: 3
DOMAIN_UNKNOWN
static val DOMAIN_UNKNOWN: Int
Unknown / Unspecified domain
Value: 0
NR_STATE_CONNECTED
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
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
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
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_EMERGENCY
static val SERVICE_TYPE_EMERGENCY: Int
Emergency service
Value: 5
SERVICE_TYPE_UNKNOWN
static val SERVICE_TYPE_UNKNOWN: Int
Unknown service
Value: 0
Public methods
describeContents
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
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 returntrue. - It is symmetric: for any non-null reference values
xandy,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any non-null reference values
x,y, andz, ifx.equals(y)returnstrueandy.equals(z)returnstrue, thenx.equals(z)should returntrue. - It is consistent: for any non-null reference values
xandy, multiple invocations ofx.equals(y)consistently returntrueor consistently returnfalse, provided no information used inequalscomparisons on the objects is modified. - For any non-null reference value
x,x.equals(null)should returnfalse.
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. |
getAccessNetworkTechnology
fun getAccessNetworkTechnology(): Int
getAvailableServices
fun getAvailableServices(): MutableList<Int!>
getCellIdentity
fun getCellIdentity(): CellIdentity?
| Return | |
|---|---|
CellIdentity? |
The cell information. This value may be null. |
getDomain
fun getDomain(): Int
getRegisteredPlmn
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
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 |
isRegistered
fun isRegistered(): Boolean
| Return | |
|---|---|
Boolean |
true if registered on roaming network, false otherwise. |
isRoaming
fun isRoaming(): Boolean
| Return | |
|---|---|
Boolean |
true if registered on roaming network, false otherwise. |
isSearching
fun isSearching(): Boolean
| Return | |
|---|---|
Boolean |
true if registered on roaming network, false otherwise. |
toString
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. |