Package com.scriptel.proscript

## Interface DeviceNotificationListener

-     public interface DeviceNotificationListener

  This interface is used to describe a class that is capable of receiving hot plug notifications from DeviceManager.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `receiveDeviceAttachedNotification​(java.lang.String path, Device device)` | This is called when a new device is added to the system.
    `void` | `receiveDeviceDetachedNotification​(java.lang.String path, Device device)` | This is called when a device is removed from the system.

- - ### Method Detail

    - #### receiveDeviceAttachedNotification

          void receiveDeviceAttachedNotification​(java.lang.String path,
                                                 Device device)

      This is called when a new device is added to the system. The path will always be set, the device can be null if there is a problem enumerating the new device.
      Parameters:
        `path` - Path of the new device.
        `device` - Device object containing information about the new device. Can be null.

    - #### receiveDeviceDetachedNotification

          void receiveDeviceDetachedNotification​(java.lang.String path,
                                                 Device device)

      This is called when a device is removed from the system. The path will always set, the device can be null if there is a problem finding the device in the cache. Don't attempt open the device object, at the point this is called the device has already been removed.
      Parameters:
        `path` - Path of the removed device.
        `device` - Device objecting containing information about the old device. Can be null.