IActivityMonitor.GetActivityHistoryAsync Method
Returns time ordered list of activities occured during given time period.
Namespace: Lumia.Sense
Assembly: Lumia.Sense (in Lumia.Sense.dll) Version: 255.255.255.255
Syntax
IAsyncOperation<IList<ActivityMonitorReading>> GetActivityHistoryAsync(
DateTimeOffset periodFrom,
TimeSpan span
)
'Declaration
Function GetActivityHistoryAsync (
periodFrom As DateTimeOffset,
span As TimeSpan
) As IAsyncOperation(Of IList(Of ActivityMonitorReading))
IAsyncOperation<IList<ActivityMonitorReading^>^>^ GetActivityHistoryAsync(
[InAttribute] DateTimeOffset periodFrom,
[InAttribute] TimeSpan span
)
function GetActivityHistoryAsync(periodFrom, span);
Parameters
- periodFrom
Type: System.DateTimeOffset
Time period start
- span
Type: System.TimeSpan
Time period length
Return Value
Type: IAsyncOperation<IList<ActivityMonitorReading>>
Activity history
Exceptions
Exception | Condition |
---|---|
COMException | All errors are thrown as instances of COMException. To get details about the error pass the HResult property of the exception to GetSenseError(Int32). This method can return the following SenseError enumeration values: InvalidParameter, SensorDeactivated, GeneralFailure, SenseDisabled, LocationDisabled |