NAOqi Core - Overview | API
Namespace : AL
#include <alproxies/alpreferencemanagerproxy.h>
ALPreferenceManager allows managing the robot preferences. A preference is defined by the tuple:
These preferences are stored on the robot as well as in the Cloud, where they can also be accessed and modified.
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Retrieves the value of a preference from its domain and name.
Parameters: |
|
---|---|
Returns: | The value of the preference. |
Retrieves all the preferences associated to a domain.
Parameters: |
|
---|---|
Returns: | A list containing couples (list of size 2) of preference names and values (example: [ [“/voice/pitch”, “60”], [“/voice/speed”, “20”] ]). |
Retrieves the list of defined preference domains.
Returns: | An array of domain names. |
---|
Imports an XML Preference files into the preference system.
Parameters: |
|
---|---|
Override : | In case the preferences found in XML file already exist, if override is true, they will be overridden. |
Removes a preference.
Parameters: |
|
---|
Remove all the preferences associated to a domain.
Parameters: |
|
---|
Stores a preference.
Parameters: |
|
---|
Raised when a new preference is added to the system.
Parameters: |
|
---|
Raised when the value of a preference has been updated.
Parameters: |
|
---|
Raised when a preference has been removed.
Parameters: |
|
---|
Raised when an entire preference domain has been removed.
Parameters: |
|
---|
Raised when all preferences have been synchronized from the cloud.