问题
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?
回答1:
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.
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".
来源:https://stackoverflow.com/questions/29569630/can-i-add-a-custom-button-using-microsoft-bands-sdk