Bagikan melalui


CLLocationManager.RequestState(CLRegion) Metode

Definisi

Secara asinkron meminta informasi tentang status region.

[Foundation.Export("requestStateForRegion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[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 RequestState (CoreLocation.CLRegion region);
abstract member RequestState : CoreLocation.CLRegion -> unit
override this.RequestState : CoreLocation.CLRegion -> unit

Parameter

region
CLRegion

Wilayah yang statusnya sedang dikueri.

Atribut

Keterangan

Pengembang aplikasi harus telah menetapkan properti ke Delegate objek yang diterapkan DidDetermineState(CLLocationManager, CLRegionState, CLRegion) sebelum memanggil metode ini. Metode ini DidDetermineState(CLLocationManager, CLRegionState, CLRegion) akan dipanggil pada beberapa titik kemudian.

Berlaku untuk