GsmCellLocation
open classGsmCellLocation: CellLocation
| kotlin.Any | ||
| ↳ | android.telephony.CellLocation | |
| ↳ | android.telephony.gsm.GsmCellLocation | |
Represents the cell location on a GSM phone.
Summary
| Public constructors | |
|---|---|
| 
            
             Empty constructor.  | 
        |
            GsmCellLocation(bundle: Bundle!)Initialize the object from a bundle.  | 
        |
| Public methods | |
|---|---|
| open Boolean | |
| open Unit | 
            
             Set intent notifier Bundle based on service state  | 
        
| open Int | 
            getCid() | 
        
| open Int | 
            getLac() | 
        
| open Int | 
            getPsc()On a UMTS network, returns the primary scrambling code of the serving cell.  | 
        
| open Int | 
            hashCode() | 
        
| open Unit | 
            setLacAndCid(lac: Int, cid: Int)Set the location area code and the cell id.  | 
        
| open Unit | 
            
             Invalidate this object.  | 
        
| open String | 
            toString() | 
        
| Inherited functions | |
|---|---|
Public constructors
GsmCellLocation
GsmCellLocation()
Empty constructor. Initializes the LAC and CID to -1.
GsmCellLocation
GsmCellLocation(bundle: Bundle!)
Initialize the object from a bundle.
Public methods
equals
open funequals(other: Any?): Boolean
Deprecated: Deprecated in Java.
| Parameters | |
|---|---|
obj | 
            the reference object with which to compare. | 
| Return | |
|---|---|
Boolean | 
            true if this object is the same as the obj argument; false otherwise. | 
          
fillInNotifierBundle
open funfillInNotifierBundle(m: Bundle!): Unit
Deprecated: Deprecated in Java.
Set intent notifier Bundle based on service state
| Parameters | |
|---|---|
m | 
            Bundle!: intent notifier Bundle | 
getCid
open fungetCid(): Int
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Int | 
            gsm cell id, -1 if unknown or invalid, 0xffff max legal value | 
getLac
open fungetLac(): Int
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Int | 
            gsm location area code, -1 if unknown, 0xffff max legal value | 
getPsc
open fungetPsc(): Int
Deprecated: Deprecated in Java.
On a UMTS network, returns the primary scrambling code of the serving cell.
| Return | |
|---|---|
Int | 
            primary scrambling code for UMTS, -1 if unknown or GSM | 
hashCode
open funhashCode(): Int
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Int | 
            a hash code value for this object. | 
setLacAndCid
open funsetLacAndCid(
lac: Int,
cid: Int
): Unit
Deprecated: Deprecated in Java.
Set the location area code and the cell id.
setStateInvalid
open funsetStateInvalid(): Unit
Deprecated: Deprecated in Java.
Invalidate this object. The location area code and the cell id are set to -1.
toString
open funtoString(): String
Deprecated: Deprecated in Java.
| Return | |
|---|---|
String | 
            a string representation of the object. |