Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

MacUSBDeviceMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class USB MBS MacOSX Plugin 10.4 Yes No No Yes, macOS only No
Function: The class for an USB Device on Mac OS X.
Example:
// iterate over all devices without recursion and count devices
dim devices(-1) as MacUSBDeviceMBS

devices.Append MacUSBDeviceMBS.root

dim count as Integer = -1 // do not count Mac itself

while UBound(devices)>=0
dim dev as MacUSBDeviceMBS = devices.Pop

count = count + 1

for each child as MacUSBDeviceMBS in dev.children
devices.Append child
next
wend

MsgBox str(Count)+" USB devices."
Notes:
Use the root method to get the device hierarchy.

For Windows you can take a look on the WindowsDeviceMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:


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


MacQuarantinePropertiesMBS   -   MacUSBMBS




Links
MBS FileMaker Plugins