CellLocationListener
interface CellLocationListener
| android.telephony.TelephonyCallback.CellLocationListener |
Interface for device cell location listener.
Summary
| Public methods | |
|---|---|
| abstract Unit |
onCellLocationChanged(location: CellLocation)Callback invoked when device cell location changes on the registered subscription. |
Public methods
onCellLocationChanged
abstract fun onCellLocationChanged(location: CellLocation): Unit
Callback invoked when device cell location changes on the registered subscription. Note, the registration subscription ID comes from TelephonyManager object which registers TelephonyCallback by TelephonyManager.registerTelephonyCallback(Executor, TelephonyCallback). If this TelephonyManager object was created with TelephonyManager.createForSubscriptionId(int), then the callback applies to the subscription ID. Otherwise, this callback applies to SubscriptionManager.getDefaultSubscriptionId().
Requires android.Manifest.permission#ACCESS_FINE_LOCATION
| Parameters | |
|---|---|
location |
CellLocation: This value cannot be null. |