|
Control Surface API
2.2.2
|

Public Member Functions | |
| void | markInterested () |
| void | addValueObserver (ObserverType callback) |
Public Member Functions inherited from Subscribable | |
| boolean | isSubscribed () |
| void | setIsSubscribed (boolean value) |
| void | subscribe () |
| void | unsubscribe () |
The common interface that is shared by all value objects in the controller API.
Definition at line 10 of file Value.java.
| void addValueObserver | ( | ObserverType | callback | ) |
Registers an observer that reports the current value.
| callback | a callback function that receives a single parameter |
| void markInterested | ( | ) |
Marks this value as being of interest to the driver. This can only be called once during the driver's init method. A value that is of interest to the driver can be obtained using the value's get method. If a value has not been marked as interested then an error will be reported if the driver attempts to get the current value. Adding an observer to a value will automatically mark this value as interested.