SystemInfo class.
More...
#include <system_info.h>
SystemInfo class.
Get information about the system the app is running on
- Version
- 0.0.7
◆ get_battery_percentage()
int SystemInfo::get_battery_percentage |
( |
| ) |
|
|
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
◆ get_device_model()
std::string SystemInfo::get_device_model |
( |
| ) |
|
|
static |
get device model (cross-platform)
- Returns
- "iPhone 8s"
◆ get_device_name()
std::string SystemInfo::get_device_name |
( |
| ) |
|
|
static |
get device name (cross-platform)
- Returns
- "iPhone 8s"
◆ get_device_type()
static std::string SystemInfo::get_device_type |
( |
| ) |
|
|
static |
◆ get_device_unique_identifier()
std::string SystemInfo::get_device_unique_identifier |
( |
| ) |
|
|
static |
get device UUID (cross-platform)
this function return platform UUID, each platform handles different the size.
- Returns
- UUID characters
- Version
- 0.0.7
◆ is_mobile()
bool SystemInfo::is_mobile |
( |
| ) |
|
|
static |
Check if the app is running on a mobile device.
- Returns
- bool
- Version
- 0.0.7
◆ operator=()
◆ platform_name()
std::string SystemInfo::platform_name |
( |
| ) |
|
|
static |
Get the current platform.
Windows
, Linux
, Mac OS X
, iOS
, Android
, Emscripten
.
- Returns
- std::string platform
- Version
- 0.0.7
The documentation for this class was generated from the following files: