Class DeviceAnnouncementAdapter

    • Constructor Detail

      • DeviceAnnouncementAdapter

        public DeviceAnnouncementAdapter()
    • Method Detail

      • deviceFound

        public void deviceFound​(DeviceAnnouncement announcement)
        Description copied from interface: DeviceAnnouncementListener
        Invoked when a new DJ Link device is heard from on the network.

        Device announcements are delivered to listeners on the Event Dispatch thread, so it is fine to interact with user interface objects in this method. Any code in this method must finish quickly, or unhandled events will back up and the user interface will be come unresponsive.

        Specified by:
        deviceFound in interface DeviceAnnouncementListener
        Parameters:
        announcement - the message which announced the device's presence
      • deviceLost

        public void deviceLost​(DeviceAnnouncement announcement)
        Description copied from interface: DeviceAnnouncementListener
        Invoked when a DJ Link device is no longer seen on the network.

        Device announcements are delivered to listeners on the Event Dispatch thread, so it is fine to interact with user interface objects in this method. Any code in this method must finish quickly, or unhandled events will back up and the user interface will be come unresponsive.

        Specified by:
        deviceLost in interface DeviceAnnouncementListener
        Parameters:
        announcement - the last message which was sent by the device before it disappeared