Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

LocationManagerCompat

public final class LocationManagerCompat
extends Object

java.lang.Object
   ↳ androidx.core.location.LocationManagerCompat


Helper for accessing features in LocationManager.

Summary

Public methods

static boolean isLocationEnabled(LocationManager locationManager)

Returns the current enabled/disabled state of location.

Inherited methods

Public methods

isLocationEnabled

public static boolean isLocationEnabled (LocationManager locationManager)

Returns the current enabled/disabled state of location.

Parameters
locationManager LocationManager

Returns
boolean true if location is enabled and false if location is disabled.