Condividi tramite


ActivitySensorTrigger Classe

Definizione

Rappresenta un trigger attivato quando ActivitySensor riceve l'input. Questo viene usato quando l'applicazione deve rispondere al sensore di attività.

public ref class ActivitySensorTrigger sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IActivitySensorTriggerFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ActivitySensorTrigger final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IActivitySensorTriggerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class ActivitySensorTrigger final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IActivitySensorTriggerFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ActivitySensorTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IActivitySensorTriggerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ActivitySensorTrigger
function ActivitySensorTrigger(reportIntervalInMilliseconds)
Public NotInheritable Class ActivitySensorTrigger
Ereditarietà
Object Platform::Object IInspectable ActivitySensorTrigger
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Costruttori

ActivitySensorTrigger(UInt32)

Crea un'istanza della classe ActivitySensorTrigger con un valore MinimumReportInterval iniziale.

Proprietà

MinimumReportInterval

Ottiene l'intervallo minimo di report supportato per il trigger del sensore.

ReportInterval

Ottiene l'intervallo di report per il trigger.

SubscribedActivities

Ottiene o imposta l'elenco delle attività a cui viene sottoscritto il trigger.

SupportedActivities

Ottiene l'elenco delle attività supportate a cui è possibile effettuare la sottoscrizione.

Si applica a

Vedi anche