共用方式為


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
屬性

適用於