コード例 #1
0
 private void DeviceService_ButtonInput(object sender, DeviceActionEventArgs e)
 {
     if (e.Value == true)
     {
         DeviceAction?.Invoke(this, e);
     }
 }
コード例 #2
0
        private void DeviceService_DeviceAction(object sender, DeviceActionEventArgs e)
        {
            switch (e.Button)
            {
            case TelephonyDevice.ButtonId.CustomButton1:
                CustomAction0();
                break;

            case TelephonyDevice.ButtonId.CustomButton2:
                CustomAction1();
                break;

            case TelephonyDevice.ButtonId.CustomButton3:
                CustomAction2();
                break;
            }
        }