Platforms to show: All Mac Windows Linux Cross-Platform

Back to MacUSBNotificationMBS class.

MacUSBNotificationMBS.DeviceAdded(properties as dictionary, NewDevice as boolean, ClassName as string, DeviceName as string, DeviceHandle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event USB MBS USB Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
This event is called when the device is added.

You find properties like product and vendor in the dictionary.
This event can be called from the constructor for existing devices with NewDevice = false. Later events have NewDevice = true so you see that this is a new device.

DeviceName and ClassName give details on the USB item found.
DeviceHandle is the internal object reference which can be used with other helper functions in this class (io_service_t).

MacUSBNotificationMBS.DeviceRemoved(properties as dictionary, NewDevice as boolean, ClassName as string, DeviceName as string, DeviceHandle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event USB MBS USB Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
This event is called when the device is removed.

You find properties like product and vendor in the dictionary.
This event can be called from the constructor for existing devices with NewDevice = false. Later events have NewDevice = true so you see that this is a new device.

DeviceName and ClassName give details on the USB item found.
DeviceHandle is the internal object reference which can be used with other helper functions in this class (io_service_t).

The items on this page are in the following plugins: MBS USB Plugin.


The biggest plugin in space...