CLLocationManager.RequestWhenInUseAuthorization 方法

定义

向用户显示一个界面,该界面请求授权以在应用位于前台时使用位置服务。

[Foundation.Export("requestWhenInUseAuthorization")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RequestWhenInUseAuthorization ();
abstract member RequestWhenInUseAuthorization : unit -> unit
override this.RequestWhenInUseAuthorization : unit -> unit
属性

适用于