Add Android support to hasBackgroundMusic

This commit is contained in:
Tiago Koji Castro Shibata
2017-07-13 23:54:37 -03:00
parent 74c35358bb
commit 4e9212b152
6 changed files with 51 additions and 11 deletions
+8
View File
@@ -106,6 +106,14 @@ public:
*/
virtual void vibrate(double seconds) const;
/**
* Gets if the user is playing music on background.
* Throws an exception on unsupported platforms.
*
* @return Whether a music is playing on background.
**/
bool hasBackgroundMusic() const;
static bool getConstant(const char *in, PowerState &out);
static bool getConstant(PowerState in, const char *&out);