Line Busy

Reports if the device is busy. A busy device is in a call.

Data Point

   
Name in Jabra SDK TranslatedButtonInputEventArgs[ButtonId = LineBusy]
Trigger Triggered when the device changes from not busy to busy or vice versa.
Event Subscription IDeviceService.TranslatedButtonInput
Value Range True = Line is busy.
False = Line is not busy.

Code Sample

The code sample demonstrates the event subscription. It shows how to parse the event to get back the data for the data point.

using System;
using JabraSDK;

namespace Jabra.TelemetryExample
{
    public class TelemetryPrinter
    {
        public TelemetryPrinter(IDeviceService deviceService)
        {
            deviceService.TranslatedButtonInput += OnTranslatedButtonInputEvent;
        }

        private void OnTranslatedButtonInputEvent(object sender, TranslatedButtonInputEventArgs e)
        {
            if (e.ButtonId == ButtonId.LineBusy)
            {
                var isLineBusy = e.Value ?? false;
                Console.WriteLine($"Line is busy: {isLineBusy}");
            }
        }
    }
}