SystemInfo class.
More...
#include <system_info.h>
SystemInfo class.
- Get information about the system the app is running on
- Version
- 0.0.7
◆ GetBatteryPercentage()
int SystemInfo::GetBatteryPercentage |
( |
| ) |
|
|
static |
Get the battery percentage.
This function checks the battery status of the device. If the device does not have a battery, it returns -1. Otherwise, it returns the battery percentage between (0-100).
- Returns
- int percentage
- Version
- 0.0.7
◆ GetDeviceModel()
std::string SystemInfo::GetDeviceModel |
( |
| ) |
|
|
static |
◆ GetDeviceName()
std::string SystemInfo::GetDeviceName |
( |
| ) |
|
|
static |
◆ GetDeviceType()
static std::string SystemInfo::GetDeviceType |
( |
| ) |
|
|
static |
◆ GetDeviceUniqueIdentifier()
std::string SystemInfo::GetDeviceUniqueIdentifier |
( |
| ) |
|
|
static |
◆ GetPlatform()
std::string SystemInfo::GetPlatform |
( |
| ) |
|
|
static |
Get the current platform.
Windows
, Linux
, Mac OS X
, iOS
, Android
, Emscripten
.
- Returns
- std::string platform
- Version
- 0.0.7
◆ IsMobile()
bool SystemInfo::IsMobile |
( |
| ) |
|
|
static |
Check if the app is running on a mobile device.
- Returns
- bool
- Version
- 0.0.7
◆ operator=()
The documentation for this class was generated from the following files: