ActivitySensorTrigger
ActivitySensorTrigger
ActivitySensorTrigger
ActivitySensorTrigger
Class
Definition
Represents a trigger that is activated when the ActivitySensor receives input. This is used when your application needs to respond to the activity sensor.
public : sealed class ActivitySensorTrigger : IActivitySensorTrigger, IBackgroundTriggerpublic sealed class ActivitySensorTrigger : IActivitySensorTrigger, IBackgroundTriggerPublic NotInheritable Class ActivitySensorTrigger Implements IActivitySensorTrigger, IBackgroundTrigger// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Constructors
ActivitySensorTrigger(UInt32) ActivitySensorTrigger(UInt32) ActivitySensorTrigger(UInt32) ActivitySensorTrigger(UInt32)
Creates an instance of the ActivitySensorTrigger class with an initial MinimumReportInterval.
public : ActivitySensorTrigger(unsigned int reportIntervalInMilliseconds)public ActivitySensorTrigger(UInt32 reportIntervalInMilliseconds)Public Sub New(reportIntervalInMilliseconds As UInt32)// You can use this method in JavaScript.
Parameters
- reportIntervalInMilliseconds
- unsigned int UInt32 UInt32 UInt32
The initial report interval to use for MinimumReportInterval.
Properties
MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval
Gets the minimum supported report interval for the sensor trigger.
public : unsigned int MinimumReportInterval { get; }public uint MinimumReportInterval { get; }Public ReadOnly Property MinimumReportInterval As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The minimum supported interval in milliseconds.
ReportInterval ReportInterval ReportInterval ReportInterval
Gets the report interval for the trigger.
public : unsigned int ReportInterval { get; }public uint ReportInterval { get; }Public ReadOnly Property ReportInterval As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The current report interval for the trigger in milliseconds.
SubscribedActivities SubscribedActivities SubscribedActivities SubscribedActivities
Gets or sets the list of activities your trigger is subscribed to.
public : IVector<ActivityType> SubscribedActivities { get; }public IList<ActivityType> SubscribedActivities { get; }Public ReadOnly Property SubscribedActivities As IList<ActivityType>// You can use this property in JavaScript.
- Value
- IVector<ActivityType> IList<ActivityType> IList<ActivityType> IList<ActivityType>
The list of subscribed activities.
SupportedActivities SupportedActivities SupportedActivities SupportedActivities
Gets the list of supported activities you can subscribe to.
public : IVectorView<ActivityType> SupportedActivities { get; }public IReadOnlyList<ActivityType> SupportedActivities { get; }Public ReadOnly Property SupportedActivities As IReadOnlyList<ActivityType>// You can use this property in JavaScript.
- Value
- IVectorView<ActivityType> IReadOnlyList<ActivityType> IReadOnlyList<ActivityType> IReadOnlyList<ActivityType>
The list of supported activities for subscription.