Can't create “Single-action control” notification android wear

感情迁移 提交于 2019-12-05 13:33:59

WearableExtender.setContentAction states:

Set an action from this notification's actions to be clickable with the content of this notification. This action will no longer display separately from the notification's content.

Use that alongside WearableExtender.setContentIcon to add the action directly to the first page of the notification.

Note: you'll still need to add the action as your code stated, then use the index of that action as the input to setContentAction

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!