Share via


CLLocationManager.LocationServicesEnabled Property

Definition

Whether location services are available.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static bool LocationServicesEnabled { [Foundation.Export("locationServicesEnabled")] get; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("locationServicesEnabled")>]
static member LocationServicesEnabled : bool

Property Value

true if the necessary hardware exists and the user has allowed the app's request for access.

Attributes

Applies to