CLLocationManagerDelegate.ShouldDisplayHeadingCalibration 方法

定义

系统认为磁力计应该校准。

[Foundation.Export("locationManagerShouldDisplayHeadingCalibration:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldDisplayHeadingCalibration (CoreLocation.CLLocationManager manager);
abstract member ShouldDisplayHeadingCalibration : CoreLocation.CLLocationManager -> bool
override this.ShouldDisplayHeadingCalibration : CoreLocation.CLLocationManager -> bool

参数

manager
CLLocationManager

this为其CLLocationManager指定委托对象的 。

返回

返回 true 以允许校准对话框。

属性

注解

当系统认为磁力计 (指南针) 需要校准时,将执行此方法,可能是因为它最近尚未校准,或者因为检测到局部磁场的巨大变化。

应用程序开发人员可以重写此方法以返回 false,在这种情况下,不会显示校准对话框。

适用于