ActivitySensorTrigger 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 : IBackgroundTrigger
struct winrt::Windows::ApplicationModel::Background::ActivitySensorTrigger : IBackgroundTrigger
public sealed class ActivitySensorTrigger : IBackgroundTrigger
Public NotInheritable Class ActivitySensorTrigger Implements IBackgroundTrigger
var activitySensorTrigger = new activitySensorTrigger(reportIntervalInMilliseconds);
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) ActivitySensorTrigger(UInt32)

Creates an instance of the ActivitySensorTrigger class with an initial MinimumReportInterval.

Properties

MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval

Gets the minimum supported report interval for the sensor trigger.

ReportInterval ReportInterval ReportInterval ReportInterval ReportInterval

Gets the report interval for the trigger.

SubscribedActivities SubscribedActivities SubscribedActivities SubscribedActivities SubscribedActivities

Gets or sets the list of activities your trigger is subscribed to.

SupportedActivities SupportedActivities SupportedActivities SupportedActivities SupportedActivities

Gets the list of supported activities you can subscribe to.

See also