CellLocation.RequestLocationUpdate Method

Definition

Request an updated CellLocation for callers targeting SDK 30 or older.

[Android.Runtime.Register("requestLocationUpdate", "()V", "")]
public static void RequestLocationUpdate ();
[<Android.Runtime.Register("requestLocationUpdate", "()V", "")>]
static member RequestLocationUpdate : unit -> unit
Attributes

Remarks

Request an updated CellLocation for callers targeting SDK 30 or older.

Whenever Android is aware of location changes, a callback will automatically be sent to all registrants of PhoneStateListener#LISTEN_CELL_LOCATION. This API requests an additional location update for cases where power saving might cause location updates to be missed.

This method is a no-op for callers targeting SDK level 31 or greater.

This method is a no-op for callers that target SDK level 29 or 30 and lack android.Manifest.permission#ACCESS_FINE_LOCATION.

This method is a no-op for callers that target SDK level 28 or below and lack android.Manifest.permission#ACCESS_COARSE_LOCATION.

This member is deprecated. use TelephonyManager#requestCellInfoUpdate.

Java documentation for android.telephony.CellLocation.requestLocationUpdate().

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