I followed this tutorial and got notification on my sony samrtwatch. But now i want to have dynamic number of actions in manu when notification message is opened. Currently we are having 3 actions only. So is it possible? and if not then is there any other alternatives like setting some UI like the tutorial have and clicking on some of the button on that ui i can get notified back in my application.

有帮助吗?

解决方案

Currently there isn't a way to have a dynamic number of actions in the menu for Notification API. Three is the max that you can have and you have to set them at compile time. If you need more flexibility your only option is to use the Control API and build your own notification UI yourself.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top