本文介绍了我可以使用Microsoft Band的SDK添加自定义按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

整个上午,我一直在使用Microsoft Band SDK.我已经弄清楚了如何发送通知和读取传感器数据.

I've been toying with the Microsoft Band SDK all morning. I've figured out how to send notifications, and read sensor data.

但是,我一直在尝试添加带有点击处理程序"的按钮,以便我可以添加自定义按钮,并在单击/点击时触发操作.

However, I've been trying to add buttons with 'click handlers', so that i can add custom buttons, and trigger actions upon click/tap.

我不知道该怎么做.有没有人做过类似的事情?

I can not figure out how to do this. Has anyone done something similar?

推荐答案

Band SDK的最新版本允许应用程序创建可以包含按钮的自定义图块页面布局.当用户按下其磁贴中的按钮时,应用程序将收到通知.

The just released version of the Band SDK allows an application to create custom tile page layouts that can include buttons. The application will be notified when the user presses a button in its tile.

转到 http://developer.microsoftband.com/,使用文档"链接进行查看PDF,请参见第2.7节自定义图块布局"和第2.8节处理自定义图块事件".

Go to http://developer.microsoftband.com/ , use the "Documentation" link to view the PDF, and see section 2.7 "Customizing Tile Layouts" and section 2.8 "Handling Custom Tile Events".

这篇关于我可以使用Microsoft Band的SDK添加自定义按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-26 19:53