Share via


CLLocationManager.RequestWhenInUseAuthorization Method

Definition

Displays an interface to the user that requests authorization to use location services any time that the app is in the foreground.

[Foundation.Export("requestWhenInUseAuthorization")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RequestWhenInUseAuthorization();
[<Foundation.Export("requestWhenInUseAuthorization")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestWhenInUseAuthorization : unit -> unit
override this.RequestWhenInUseAuthorization : unit -> unit
Attributes

Applies to