TelephonyCallback.CellLocationListener
public
static
interface
TelephonyCallback.CellLocationListener
android.telephony.TelephonyCallback.CellLocationListener |
Interface for device cell location listener.
Summary
Public methods | |
---|---|
abstract
void
|
onCellLocationChanged(CellLocation location)
Callback invoked when device cell location changes on the registered subscription. |
Public methods
onCellLocationChanged
public abstract void onCellLocationChanged (CellLocation location)
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 Manifest.permission.ACCESS_FINE_LOCATION
Parameters | |
---|---|
location |
CellLocation : This value cannot be null . |