UserActivityChannel.GetRecentUserActivitiesAsync(Int32) UserActivityChannel.GetRecentUserActivitiesAsync(Int32) UserActivityChannel.GetRecentUserActivitiesAsync(Int32) UserActivityChannel.GetRecentUserActivitiesAsync(Int32) UserActivityChannel.GetRecentUserActivitiesAsync(Int32) Method

Definition

Get up to the specified number of the most recently engaged user activities, sorted by the time each user activity ended.

public : IAsyncOperation<IVector<UserActivitySessionHistoryItem>> GetRecentUserActivitiesAsync(int maxUniqueActivities)
IAsyncOperation<IVector<UserActivitySessionHistoryItem>> GetRecentUserActivitiesAsync(int32_t maxUniqueActivities) const;
public IAsyncOperation<IList<UserActivitySessionHistoryItem>> GetRecentUserActivitiesAsync(Int32 maxUniqueActivities)
Public Function GetRecentUserActivitiesAsync(maxUniqueActivities As Int32) As IAsyncOperation<IList<UserActivitySessionHistoryItem>>(Of IVector)
Windows.ApplicationModel.UserActivities.UserActivityChannel.getRecentUserActivitiesAsync(maxUniqueActivities).done( /* Your success and error handlers */ );

Parameters

maxUniqueActivities
Int32 Int32 Int32

The maximum number of user activities to get. Fewer may be returned if there aren't as many user activities as requested.

Returns

IAsyncOperation<IList<UserActivitySessionHistoryItem>> IAsyncOperation<IList<UserActivitySessionHistoryItem>> IAsyncOperation<IList<UserActivitySessionHistoryItem>>

A list of user activities, sorted by when the activities ended.

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

User activities with a null end time appear first in the list.