Platforms to show: All Mac Windows Linux Cross-Platform
MacUSBNotificationMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | USB | MBS USB Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Please make a subclass so you can put your own code in the events.
Use WinUSBNotificationMBS for Windows.
- 2 events
- event DeviceAdded(properties as dictionary, NewDevice as boolean, ClassName as string, DeviceName as string, DeviceHandle as Integer)
- event DeviceRemoved(properties as dictionary, NewDevice as boolean, ClassName as string, DeviceName as string, DeviceHandle as Integer)
- property LastError as Integer
- method Constructor(vendor as Integer = 0, product as Integer = 0)
- 4 shared methods
- shared method GetUSBDeviceInfo(DeviceHandle as Integer, byref Vendor as string, byref Product as string, byref SerialNumber as string, byref Revision as Integer) as boolean
- shared method QueryBSDName(DeviceHandle as Integer) as string
- shared method Release(DeviceHandle as Integer)
- shared method Retain(DeviceHandle as Integer)
This class has no sub classes.
Some examples using this class:
Blog Entries
Release notes
- Version 21.0
- Fixed events for MacUSBNotificationMBS class, broken in 20.5.
The items on this page are in the following plugins: MBS USB Plugin.