CLASS
OSCallbackReceiver
public class OSCallbackReceiver: NSObject
OSCallbackReceiver contains callbacks triggered by the Live set data changes.
If you prefer using a reactive approach, consider implementing OSReactiveReceiver instead.
- Since: 0.1
Methods
setOnTempoChangeCallback(onChange:)
public func setOnTempoChangeCallback(onChange: @escaping (Float) -> Void)
Register a callback to be invoked when the general tempo changes.
- Parameter onChange: The callback that will run
- Since: 0.1
Parameters
Name | Description |
---|---|
onChange | The callback that will run |
setOnDeviceParameterChangeCallback(onChange:)
public func setOnDeviceParameterChangeCallback(onChange: @escaping (OSDeviceParameter) -> Void)
Register a callback to be invoked when device parameter changes.
- Parameter onChange: The callback that will run
- Since: 0.1
Parameters
Name | Description |
---|---|
onChange | The callback that will run |
removeOnTempoChangeCallback()
public func removeOnTempoChangeCallback()
Remove the current tempo change callback.
- Since: 0.1
removeOnDeviceParameterChangeCallback()
public func removeOnDeviceParameterChangeCallback()
Remove the current device parameter change callback.
- Since: 0.1
removeAllCallbacks()
public func removeAllCallbacks()
Remove all callbacks.
- Since: 0.1