Client for communicating with the Tilt Five™ API. More...
#include <TiltFiveNative.hpp>
Public Member Functions | |
auto | listGlasses () -> Result< std::vector< std::string > > |
Enumerate glasses. More... | |
auto | getServiceVersion () -> Result< std::string > |
Get the version of the Tilt Five™ service. More... | |
auto | getChangedParams () -> Result< std::vector< T5_ParamSys > > |
Get a system-wide list of changed parameters. More... | |
auto | isTiltFiveUiRequestingAttention () -> Result< bool > |
Check if the Tilt Five™ UI wants the users attention. More... | |
auto | getGameboardSize (T5_GameboardType type) -> Result< T5_GameboardSize > |
Obtain the dimensions of the gameboard. More... | |
auto | createParamChangedHelper (std::weak_ptr< ParamChangeListener > listener, std::chrono::milliseconds pollInterval=std::chrono::milliseconds(100)) -> std::unique_ptr< ParamChangeHelper > |
Create a ParamChangeHelper. More... | |
Client for communicating with the Tilt Five™ API.
Definition at line 82 of file TiltFiveNative.hpp.
|
inline |
Create a ParamChangeHelper.
[in] | listener | - A std::weak_ptr to a ParamChangeListener to receive callbacks |
[in] | pollInterval | - Polling interval for changes |
Definition at line 297 of file TiltFiveNative.hpp.
|
inline |
Get a system-wide list of changed parameters.
This function doesn't return the values of the changed parameters, but vector of the parameters that have changed since this function was last called. Note that as a result, the first call to this function will always result in a count of 0.
Definition at line 227 of file TiltFiveNative.hpp.
|
inline |
Obtain the dimensions of the gameboard.
[in] | type | - T5_GameboardType of the gameboard to get dimensions for. |
Definition at line 279 of file TiltFiveNative.hpp.
|
inline |
Get the version of the Tilt Five™ service.
Definition at line 208 of file TiltFiveNative.hpp.
|
inline |
Check if the Tilt Five™ UI wants the users attention.
From time to time, the Tilt Five™ UI may want the users attention, for example if there is an urgent wand firmware upgrade, or a connectivity problem that requires troubleshooting.
Applications may query this to determine if this is the case. This results in a better user experience - for example if a user is attempting to run your application with the Tilt Five™ hardware, and it's not working, it may be due to an issue that can be resolved in the control panel.
true
if the Tilt Five™ UI wants the users attention, false
otherwise. Definition at line 261 of file TiltFiveNative.hpp.
|
inline |
Enumerate glasses.
Glasses may not be ready to connect if they are in the process of booting (or rebooting).
Definition at line 164 of file TiltFiveNative.hpp.