Device Method

Modified on 2008/12/01 22:33 by Administrator — Categorized as: Definition

Device methods consist of the computations and actions that the device can perform. Each device can have a list of methods that are used to control the device. A noaa weather device has no methods, but a SqueezeCenter device for example has Play, Stop, Pause and other methods. Use this tab to test invoking methods on the device.

Device methods may contain any number of method parameters. Each method parameter represents information used during the processing of the method. For example the iTunes driver has one parameter named OffsetVolume which is a number representing the amount to offset the current volume.

Device methods may result in a return value after the method has completed processing. For example the Host Monitor Driver has a method named GetDriveUsage which returns a number representing the percent driver usage.