Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.15 KB

useractivity_tryparsefromjson_986433327.md

File metadata and controls

28 lines (20 loc) · 1.15 KB
-api-id -api-type
M:Windows.ApplicationModel.UserActivities.UserActivity.TryParseFromJson(System.String)
winrt method

Windows.ApplicationModel.UserActivities.UserActivity.TryParseFromJson

-description

Constructs a UserActivity from a JSON string.

-parameters

-param json

The JSON string that represents the UserActivity.

-returns

A UserActivity constructed from the JSON string.

-remarks

The UserActivity APIs allow an application to provide rich information for Cortana Pick-up Where I Left Off and the Timeline. A better re-engagement UI can be built within the consuming application if the source application can provide more details about the re-engagement. This method creates a UserActivity from information stored in a JSON string that a source application provided so that the consuming application can get information about the source application, and the specific activity within the source application.

-see-also

UserActivity.ToJson

-examples