@gnaudio/jabra-js
    Preparing search index...

    Interface IApi

    Main Jabra API object. Returned after SDK initialization (see init).

    Provides an entry point to reflecting and changing the state of Jabra devices.

    interface IApi {
        _config?: IConfig;
        _readyEvents: Observable<any>;
        _transport: ITransport;
        deviceAdded: Observable<IDevice>;
        deviceList: Observable<IDevice[]>;
        deviceRemoved: Observable<IDevice>;
        transportContext: TransportContext;
        getChromeExtensionVersion(): Promise<string | null>;
        getChromehostVersion(): Promise<string | null>;
        getCurrentDevices(): IDevice[];
        getVersion(): string;
        start(): Promise<void>;
    }
    Index

    Methods

    • Get the Jabra Chrome Extension version

      In node context, the Chrome Extension is unnecessary and will always return null.

      In browser context, the Chrome Extension is a required component that needs to be installed separately from this npm-package - unless the library is configured to use WebHID-transport, see IConfig.transport.

      Returns Promise<string | null>

      The version number or null if not installed.

    • Get the version of the Jabra Device Connector, previously known as Chromehost.

      The Jabra Device Connector is the native console application communicating with the USB-layer.

      In node context, the Jabra Device Connector will be embedded in the jabra-js stack, and not something to be concerned with as an SDK-user.

      In browser context, the Jabra Device Connector is a required application that needs to be installed separately from this npm-package - unless the library is configured to use WebHID-transport, see IConfig.transport.

      Returns Promise<string | null>

      The version number or null if not installed.

    • Get a collection of the currently available Jabra devices.

      Returns IDevice[]

    • Returns the Jabra SDK version

      Returns string

    • Start device discovery.

      Returns Promise<void>

    Properties

    _config?: IConfig

    The configuration that was used to initialize the SDK.

    _readyEvents: Observable<any>

    Emits when the SDK has initialized and is ready for operation. The observable will replay on new subscriptions.

    _transport: ITransport

    Internal use only. Acts as a bridge between the SDK and the object which communicates with the OS and the Jabra device.

    deviceAdded: Observable<IDevice>

    An observable which emits newly discovered Jabra devices. The emitted device object can be consumed by the third party developer. See IDevice for more information.

    deviceList: Observable<IDevice[]>

    A list of connected physical Jabra devices. Each device object can be consumed by the third party developer. See IDevice for more information.

    deviceRemoved: Observable<IDevice>

    An observable which emits disconnected Jabra devices. The emitted device object represents the device that has been disconnected. See IDevice for more information.

    transportContext: TransportContext

    Get the underlying transport context. Especially relevant when running in the browser to distinguish between WebHID and Chrome Extension/Host See enum TransportContext