给通知添加可穿戴设备特征

来源:互联网 发布:长江大学网络教育 编辑:程序博客网 时间:2024/04/29 13:25


Adding WearableFeatures to Notifications

给通知添加可穿戴设备特征

 

When an Androidhandheld (phone or tablet) and Android wearable are connected, the handheldautomatically shares notifications with the wearable. On the wearable, eachnotification appears as a new card in the context stream.

当一个Android手持设备(手机或平板电脑)和Android可穿戴设备连接,手持设备会自动地和可穿戴设备分享通知。在可穿戴设备上,每一个通知作为一个新的卡片在上下文流出现。

However, to giveusers the best experience, you should add wearable-specific functionality tothe notifications you already create. The following lessons show you how tocreate notifications that are catered for handhelds and wearables at the sametime.

然而,为了给用户更好的体验,你应该给已经创建的通知添加可穿戴特定功能。下面的课程给你展示如何创建同时适合手持设备和可穿戴设备的通知。

Figure 1. The samenotification displayed on a handheld and wearable.

特征1.展示在手持设备和可穿戴设备的一样的通知。

 

Lessons


Creating anotification

Learn how to createnotifications with wearable features with the Android support library.

Receiving VoiceInput in a Notification

Learn how to add anaction to a wearable notification that receives voice input from users anddelivers the transcribed message to your handset app.

Adding Pages toa Notification

Learn how to addadditional pages of information that are visible when the user swipes to theleft.

StackingNotifications

Learn how to place allsimilar notifications from your app in a stack, allowing users to view eachnotification individually without adding multiple cards to the card stream.

课程

创建通知

        学习如何使用Android支持的数据库创建有可穿戴设备特征的通知。

在通知接收声音输入

        学习如何给可穿戴设备通知添加动作,这个通知从用户那里接收声音,并传递转录信息给手机应用程序。

给通知添加页

        学习当用户点击左边,如何添加可见信息的附加页。

堆叠通知

        学习如何在一个堆里摆放app里所有相同的通知,允许用户不用给卡片流添加多个卡片,分别地看每个通知。


渣翻勿喷,仅仅是自己学习的记录,欢迎指正,会不断修改。

0 0
原创粉丝点击