Share via


CLLocationManager.ActivityType プロパティ

定義

より良い電力消費/精度のためのオペレーティングシステムの手がかりを提供するために使用されます。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreLocation.CLActivityType ActivityType { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("activityType", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setActivityType:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] set; }
member this.ActivityType : CoreLocation.CLActivityType with get, set

プロパティ値

既定値は Other です。

属性

注釈

アプリケーション開発者は、可能な場合は、このプロパティを設定する必要があります。 これにより、アプリケーションのニーズに関する手掛かりがシステムに提供されます。 たとえば、 が に AutomotiveNavigation 設定されていて、デバイスがしばらく移動していない場合、システムは移動が検出されるまで更新プログラムの電源を切る可能性があります。

適用対象