Bagikan melalui


CLLocationManager.StartRangingBeacons(CLBeaconRegion) Metode

Definisi

Mulai mengirimkan pemberitahuan tentang suar di 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

Parameter

region
CLBeaconRegion

Wilayah sedang diperiksa.

Atribut

Keterangan

Sebelum memanggil metode ini, pengembang aplikasi harus menetapkan ke Delegate objek yang mengimplementasikan DidRangeBeacons(CLLocationManager, CLBeacon[], CLBeaconRegion) metode dan RangingBeaconsDidFailForRegion(CLLocationManager, CLBeaconRegion, NSError) .

Berlaku untuk