Compartir a través de


CLLocationManager.ActivityType Propiedad

Definición

Se usa para proporcionar las pistas del sistema operativo para mejorar el consumo de energía y la precisión.

[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

Valor de propiedad

El valor predeterminado es Other.

Atributos

Comentarios

Los desarrolladores de aplicaciones deben establecer esta propiedad siempre que sea posible. Proporciona pistas al sistema sobre la necesidad de la aplicación. Por ejemplo, si se establece en AutomotiveNavigation y el dispositivo no se ha movido durante un tiempo, el sistema podría apagar las actualizaciones hasta que se detecte el movimiento.

Se aplica a