使用 Microsoft Graph 中的活动源 API 启用跨设备体验Using the activity feed API in Microsoft Graph to enable cross-device experiences

活动有助于用户跨设备快速继续执行应用中的重要任务,从而提高工作效率。Activities make users more productive by helping them resume important tasks in your app quickly across devices. Microsoft 通过诸如 Windows Timeline、Windows Sets、Cortana“从我离开的位置继续”和 Microsoft Launcher 的体验帮助提高用户应用的生产力,这些应用均由活动源驱动。Microsoft helps drive user productivity with your apps through experiences like Windows Timeline, Windows Sets, Cortana Pick up Where I left off and Microsoft Launcher, which are all powered by the activity feed.如果你使用活动,这些 Microsoft 体验可以开始在应用中推动交互。 When you use activities, these Microsoft experiences can start driving engagement with your app. 此外,还可以在应用中显示这些活动,以帮助用户恢复他们之前在任何平台(包括 Windows、Android 和 iOS)、任何设备上所做的操作。You can also display activities in your apps to help users get back to what they were doing on any device, on any platform, including Windows, Android, and iOS.

为什么与这些活动集成?Why integrate with activities?

能够实现在 Windows、Android、Linux 和 iOS 设备之间无缝转换的体验Enable experiences that flow seamlessly between Windows, Android, Linux, and iOS devices

优质应用有助于用户执行重要操作,便于实现大量创意、生产力和娱乐方案。Great applications help users do great things — enabling a wide range of creativity, productivity, and entertainment scenarios. 继续执行任务可能充满挑战,尤其是当用户要在其他设备或平台上继续执行任务时。Returning to a task can be a challenge, especially when a person wants to continue the task on a different device or platform. 通过将活动集成到应用中,可以帮助用户使用任意方便的屏幕快速返回到最近的任务,即在 Web、移动和桌面之间来回切换。By incorporating activities into applications, you can help users return to recent tasks quickly using whatever screen is handy — they can move from web to mobile to desktop and back again. 借助历史记录项,用户可以轻松查看最近使用的活动、何时使用以及使用时长。With history items, users can easily see which activities they used most recently, when, and for how long.

每个用户活动都表示为应用内的一个目标:产品页、电视节目、文档或在游戏中的当前市场活动。Each user activity represents a single destination within your app: a product page, TV show, document, or current campaign in a game. 只需一个深层链接即可继续应用中的活动。All you need is a deep link to resume the activity in your app. 获取最近活动可用于创建购物应用的最近查看产品列表,或创建当前阅读的书籍和新闻文章列表。Use get recent activities to create a list of recently viewed products for your shopping app or a current reading list for books & news articles.

使用自适应卡片创建适用于任何体验的更丰富活动Create richer activities for any experience with Adaptive Cards

在 Windows Timeline 等 Microsoft 体验中呈现的活动使用自适应卡片框架进行显示,这样就可以创建精美、丰富的卡片来展示应用活动了。When activities are rendered in Microsoft experiences such as Windows Timeline, they're displayed using the Adaptive Card framework, which allows you to create beautiful, rich cards to showcase your app's activities. 也可以使用自适应卡片 SDK 在自己的应用中呈现丰富卡片。You can use the Adaptive Card SDK to render rich cards in your own app too. 如果没有为每个活动提供一个自适应卡片,我们将基于你的应用程序名称和图标、必填的“标题”字段和可选“描述”字段来自动创建一个简单的活动卡片。If you do not provide an adaptive card for each activity, we'll automatically create a simple activity card based on your application name and icon, the required Title field, and optional Description field.

让 Microsoft 通过可服务于数亿客户的功能来帮助提升应用的使用率Let Microsoft help drive app usage with features that reach hundreds of millions of customers

与用户活动集成不仅能使用户无缝地继续应用中的活动,而且还意味着可以利用一组不断发展的适用于 Windows、iOS 和 Android 的 Microsoft 体验,这些体验旨在提高用户生产力并帮助用户在所有设备上与应用互动。Integrating with user activities not only enables users to resume activities in your app seamlessly, it means tapping into a growing set of Microsoft experiences for Windows, iOS, and Android - experiences designed to drive user productivity and help users engage with your app on all devices. 通过使用 Microsoft Graph,可仅与用户活动进行一次集成,即可服务于数亿消费者和组织中使用 Windows 以及适用于 iOS 和 Android 设备的 Microsoft 产品的数千万客户。Using Microsoft Graph, you can integrate with user activities just once and reach hundreds of millions of consumers, and tens of millions of customers in organizations who use Windows as well as Microsoft products for iOS and Android devices.

另请参阅See also