Language

TelephonyManager.RequestCellInfoUpdate Method

Definition

Requests all available cell information from the current subscription for observed camped/registered, serving, and neighboring cells.

[Android.Runtime.Register("requestCellInfoUpdate", "(Ljava/util/concurrent/Executor;Landroid/telephony/TelephonyManager$CellInfoCallback;)V", "GetRequestCellInfoUpdate_Ljava_util_concurrent_Executor_Landroid_telephony_TelephonyManager_CellInfoCallback_Handler", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual void RequestCellInfoUpdate(Java.Util.Concurrent.IExecutor executor, Android.Telephony.TelephonyManager.CellInfoCallback callback);
[<Android.Runtime.Register("requestCellInfoUpdate", "(Ljava/util/concurrent/Executor;Landroid/telephony/TelephonyManager$CellInfoCallback;)V", "GetRequestCellInfoUpdate_Ljava_util_concurrent_Executor_Landroid_telephony_TelephonyManager_CellInfoCallback_Handler", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member RequestCellInfoUpdate : Java.Util.Concurrent.IExecutor * Android.Telephony.TelephonyManager.CellInfoCallback -> unit
override this.RequestCellInfoUpdate : Java.Util.Concurrent.IExecutor * Android.Telephony.TelephonyManager.CellInfoCallback -> unit

Parameters

executor
IExecutor

the executor on which callback will be invoked. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
TelephonyManager.CellInfoCallback

a callback to receive CellInfo. This value cannot be null.

Attributes

Remarks

Requests all available cell information from the current subscription for observed camped/registered, serving, and neighboring cells. Any available results from this request will be provided by calls to onCellInfoChanged() for each active subscription. This method returns valid data for devices with FEATURE_TELEPHONY. On devices that do not implement this feature, the behavior is not reliable. Requires Manifest.permission.ACCESS_FINE_LOCATION Requires the PackageManager#FEATURE_TELEPHONY_RADIO_ACCESS feature which can be detected using PackageManager.hasSystemFeature(String).

Android reference for android.telephony.TelephonyManager.requestCellInfoUpdate.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to