CLLocationManager.RequestWhenInUseAuthorization 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
向使用者顯示介面,該介面會在應用程式處於前景時要求授權使用位置服務。
[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
- 屬性