com.avaya.deskphoneservices

## Interface HandsetManager

-     public interface HandsetManager

  Interface for the component that tracks which handsets, if any, are currently off-hook.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addHandsetHookListener(HandsetHookListener listener)` Add a listener to be notified when a handset goes on or off hook.
    `java.util.Set<HandsetType>` | `getOffHookHandsets()` Get the set of handsets that are currently connected to the device and are off-hook, if any.
    `void` | `removeHandsetHookListener(HandsetHookListener listener)` Remove a listener from being notified when a handset goes on or off hook.

- - ### Method Detail

    - #### getOffHookHandsets

          @NonNull
          java.util.Set<HandsetType> getOffHookHandsets()

      Get the set of handsets that are currently connected to the device and are off-hook, if any.
      Returns:
        A set of `HandsetType` instances, which is empty if there is no off-hook handset.

    - #### addHandsetHookListener

          void addHandsetHookListener(@NonNull
                                      HandsetHookListener listener)

      Add a listener to be notified when a handset goes on or off hook.
      Parameters:
        `listener` - The listener to be added.

    - #### removeHandsetHookListener

          void removeHandsetHookListener(@NonNull
                                         HandsetHookListener listener)

      Remove a listener from being notified when a handset goes on or off hook.
      Parameters:
        `listener` - The listener to be removed.