|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace My_UC_App
{
public partial class Form1 : Form
{
Spokes m_spokes = null;
public Form1()
{
InitializeComponent();
m_spokes = Spokes.Instance;
m_spokes.RegisterSpokesHandlerHWnd(this.Handle);
m_spokes.GetInitialDonnedStatus();
}
protected override void DefWndProc(ref Message msg)
{
switch (msg.Msg)
{
case (int)SpokesWM.DEVICE_DON:
wearingStateLbl.Text = "It is being worn";
break;
case (int)SpokesWM.DEVICE_DOFF:
wearingStateLbl.Text = "It is NOT being worn";
break;
default:
base.DefWndProc(ref msg);
break;
};
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Today’s smart devices and applications have untapped potential in the realm of context-aware computing. Plantronics is making it possible for its audio devices to deliver contextual information to a range of applications through Plantronics headsets. The Plantronics Spokes SDK allows developers to create a range of business applications that will have the power to change the way we communicate and collaborate.
Please check out our DevZone for more info on the Spokes SDK:
http://developer.plantronics.com/community/devzone