Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to store headset devices for jabra sdk service

Hierarchy

  • DeviceCollectionService

Index

Constructors

Properties

availableDevices: IDeviceCollection = ...
availableDevicesEvent: Subject<HeadsetDevice[]> = ...
numberOfDevices: number = 0
selectedDevice: IDevice = ...
selectedDeviceEvent: Subject<HeadsetDevice> = ...

Methods

  • addDevice(device: IDevice): void
  • Add devices to the collection

    example

    addDevice(device);

    Parameters

    • device: IDevice

    Returns void

  • getAllDevices(): any[]
  • Get all the devices from collection

    example

    getAllDevices();

    Returns any[]

  • getDeviceById(deviceId: string): IDevice
  • Get device details by device id

    example

    const device = getDeviceById(device.id);

    Parameters

    • deviceId: string

      device id

    Returns IDevice

    device

  • getNumberOfDevices(): number
  • Return total number of devices

    example

    getNumberOfDevices();

    Returns number

  • getSelectedDevice(): { id: string; name: string }
  • Get selected device

    example

    const currentDevice = getSelectedDevice();

    Returns { id: string; name: string }

    • id: string
    • name: string
  • removeCollection(id: string): void
  • Remove devices from the collection

    example

    removeCollection(device);

    Parameters

    • id: string

    Returns void

  • updateSelectedDevice(device: IDevice): void
  • Updates value of selected device variable

    example

    updateSelectedDevice(device);

    Parameters

    • device: IDevice

      device

    Returns void

Generated using TypeDoc