Interface UdevDeviceOwner


public interface UdevDeviceOwner
Interface that allows a UdevDevice to be claimed / released. Claiming a device provides the UdevDeviceOwner exclusive access to the device until the device is released, the owner is removed, or the device itself is removed.
Since:
1
Version:
9
  • Method Details

    • onOwnedDeviceAdd

      void onOwnedDeviceAdd(UdevService service, UdevDevice device)
      Called when a UdevDevice is claimed by this owner. This should not perform any long running tasks.
      Since:
      9
    • onOwnedDeviceRemove

      void onOwnedDeviceRemove(UdevService service, UdevDevice device)
      Called when a UdevDevice owned by this owner goes away. This is typically the result of the hardware being disconnected, power cycled and so on.
      Since:
      9