TwclUserActivity Class

The class represents a User Activity.

A User Activity is created by an application during its execution to notify the system of a user work stream that can be continued at another time. It provides information about a task the user is engaged in.

Namespace: wclTimeline
TObject
  wclTimeline.TwclUserActivity
type
 TwclUserActivity = class
 end;

The TwclUserActivity type exposes the following members.

Show:
 NameDescription
Create

Creates new User Activity object.

Destroy

Frees the object.

Top
Show:
 NameDescription
Active

Gets the USer Activity Session state.

Description

Gets and sets the description text that is used for the details tile for this User Activity.

DisplayText

Gets and sets the display text that is used for the details tile text for this User Activity.

Id

Gets the Activity ID that was assigned to this User Activity when it was created.

Params

Gets and sets the application activation parameters.

Protocol

Gets and sets the Activity's activation protocol.

State

Gets the state of this User Activity.

Title

Gets and set the text which is shown in the top banner of the activity card.

Top
Show:
 NameDescription
BeginSession

Starts User Activity session.

EndSession

Ends User Activity session.

Top

A User Activity encapsulates a user's task that can be continued at a later time. Creating a User Activity causes that activity to appear in Windows Timeline and in Cortana's Pick up where I left off feature. Timeline is a rich task view that shows a chronological view of what you’ve been working on. It can also include what you were working on across devices. For example, a mail app could create a User Activity when the user starts creating a new email message. The user could pause working on the email and then work on it later on the same machine, or even another device.

An application must never create this object directly. Instead of that an application must use TwclTimelineChannel component to create or get an User Activity objects.

The User Activity is supported on Windows 10 16299 and above.