![]() |
NDEVR
API Documentation
|
When supported, such as on Android/IOS, will vibrate the device. More...
Public Member Functions | |
| QTVibrationManager (QObject *parent=0) | |
| Constructs a vibration manager. | |
| bool | enabled () const |
| Returns whether vibration feedback is enabled by the user. | |
| void | requestVibrate (const TimeSpan &span=default_buzz_length.get()) |
| Requests a haptic vibration for the specified duration. | |
Static Public Member Functions | |
| static QTVibrationManager & | DefaultInstance () |
| Returns the singleton instance of the vibration manager. | |
| static bool | SystemSupportsVibrate () |
| Checks whether the current platform supports haptic vibration. | |
Static Public Attributes | |
| static ApplicationOption< TimeSpan > | default_buzz_length |
| Application-wide default duration for vibration feedback. | |
| static ApplicationOption< bool > | global_vibrate |
| Application-wide setting controlling whether vibration is enabled. | |
When supported, such as on Android/IOS, will vibrate the device.
Definition at line 11 of file QTVibrationManager.h.
|
explicit |
Constructs a vibration manager.
| [in] | parent | Optional parent QObject. |
References QTVibrationManager().
Referenced by QTVibrationManager(), and DefaultInstance().
|
static |
Returns the singleton instance of the vibration manager.
References QTVibrationManager().
| bool QTVibrationManager::enabled | ( | ) | const |
Returns whether vibration feedback is enabled by the user.
| void QTVibrationManager::requestVibrate | ( | const TimeSpan & | span = default_buzz_length.get() | ) |
Requests a haptic vibration for the specified duration.
| [in] | span | The duration to vibrate. |
References default_buzz_length.
|
static |
Checks whether the current platform supports haptic vibration.