ActivityMonitor Members
Include Protected Members
Include Inherited Members
The ActivityMonitor type exposes the following members.
Methods
Name | Description | |
---|---|---|
ActivateAsync |
Re-establishes the communication channel with underlying sensor, if it doesn't already exist. Connection needs to be re-established when the application is brought to foreground.
|
|
DeactivateAsync |
Closes the communication channel with underlying sensor. Connection must be closed whenever application is put to background.
|
|
GetActivityAtAsync |
Gets the device activity at given time.
|
|
GetActivityHistoryAsync |
Returns time ordered list of activities occured during given time period.
|
|
GetCurrentReadingAsync |
Gets the current activity
|
|
GetDefaultAsync |
Gets the default implementation.
|
|
IsSupportedAsync |
Returns whether the sensor is supported by the device or not.
|
Properties
Name | Description | |
---|---|---|
Enabled |
Enables or disables activity change event monitoring.
|
|
Type |
The sensor type.
|
Events
Name | Description | |
---|---|---|
ReadingChanged |
Occurs each time activity changes.
|