Welcome to ARx API Docs
Detecting button presses
2min
the arxwear headset features 5 physical raised push buttons each button is referenced like so arxbutton circle arxbutton square arxbutton triangle arxbutton volumedown arxbutton volumeup by default no functions are associated with the buttons, it is up to you to assign them in order to detect button click use the following override function in your mainactivity override fun onbuttonclick(button arxbutton) { if(button == arxbutton circle){ snackbar make( findviewbyid\<uvccameratextureview>(r id camera view), "circle button short press", snackbar length long ) show() } } for long click, use the following override fun onbuttonlongclick(button arxbutton) { if(button == arxbutton circle){ snackbar make( findviewbyid\<uvccameratextureview>(r id camera view), "circle button long press", snackbar length long ) show() } }