Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Static Public Member Functions | List of all members
SystemInfo Class Reference

SystemInfo class. More...

#include <system_info.h>

Public Member Functions

void operator= (const SystemInfo &)=delete
 

Static Public Member Functions

static std::string GetPlatform ()
 Get the current platform. More...
 
static bool IsMobile ()
 Check if the app is running on a mobile device. More...
 
static std::string GetDeviceType ()
 
static std::string GetDeviceName ()
 
static std::string GetDeviceModel ()
 
static std::string GetDeviceUniqueIdentifier ()
 
static int GetBatteryPercentage ()
 Get the battery percentage. More...
 

Detailed Description

SystemInfo class.

Version
0.0.7

Member Function Documentation

◆ 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=()

void SystemInfo::operator= ( const SystemInfo )
delete

The documentation for this class was generated from the following files: