Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

MacUSBNotificationMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class USB MBS USB Plugin 11.2 Yes No No Yes, macOS only No
Function: The class for receiving notifications if an USB device has been attached or removed.
Notes:
Please make a subclass so you can put your own code in the events.

Use WinUSBNotificationMBS for Windows.

Feedback, Comments & Corrections

  • 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 which use this class:


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


MacUSBMBS   -   MapiFileMBS




Links
MBS FileMaker tutorial videos