Class Leap::Config¶
- class Leap.Config¶
The Config class provides access to Leap Motion system configuration information.
- Since
1.0
Public Types
Public Functions
- Config (Connection.Key connectionKey)¶
Creates a new Config object for setting runtime configuration settings.
Note that the Controller.Config provides a properly initialized Config object already.
- Since
3.0
- bool Get<T> (string key, Action<T> onResult)¶
Requests a configuration value.
You must provide an action to take when the Leap service returns the config value. The Action delegate must take a parameter matching the config value type. The current value of the setting is passed to this delegate.
- Since
3.0
- bool Set<T> (string key, T value, Action<bool> onResult)¶
Sets a configuration value.
You must provide an action to take when the Leap service sets the config value. The Action delegate must take a boolean parameter. The service calls this delegate with the value true if the setting was changed successfully and false, otherwise.
- Since
3.0