共用方式為


CLLocationManager.StartRangingBeacons(CLBeaconRegion) 方法

定義

開始傳遞 中 region 指標的相關通知。

[Foundation.Export("startRangingBeaconsInRegion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void StartRangingBeacons (CoreLocation.CLBeaconRegion region);
abstract member StartRangingBeacons : CoreLocation.CLBeaconRegion -> unit
override this.StartRangingBeacons : CoreLocation.CLBeaconRegion -> unit

參數

region
CLBeaconRegion

正在檢查的區域。

屬性

備註

在呼叫此方法之前,應用程式開發人員必須指派給 Delegate 實作 DidRangeBeacons(CLLocationManager, CLBeacon[], CLBeaconRegion)RangingBeaconsDidFailForRegion(CLLocationManager, CLBeaconRegion, NSError) 方法的物件。

適用於