A class for providing platform specific features. More...
Public Types | |
enum | TextAlign { , TOP = 0x13, TOP_RIGHT = 0x12, RIGHT = 0x32, BOTTOM_RIGHT = 0x22, BOTTOM = 0x23, BOTTOM_LEFT = 0x21, LEFT = 0x31, TOP_LEFT = 0x11 } |
Defines the alignment of text. More... | |
Static Public Member Functions | |
static int | getDPI () |
Gets the DPI of device The DPI of device. | |
static void | setAccelerometerEnabled (bool isEnabled) |
To enable or disable accelerometer. | |
static void | setAccelerometerInterval (float interval) |
Sets the interval of accelerometer. | |
local | setAccelerometerInterval ( local interval) |
Sets the interval of accelerometer. | |
static void | setKeepScreenOn (bool keepScreenOn) |
Controls whether the screen should remain on. More... | |
var | setKeepScreenOn ( var keepScreenOn) |
Controls whether the screen should remain on. More... | |
local | setKeepScreenOn ( local keepScreenOn) |
Controls whether the screen should remain on. More... | |
static void | vibrate (float duration) |
Vibrate for the specified amount of time. More... | |
static Data | getTextureDataForText (const char *text, const FontDefinition &textDefinition, TextAlign align, int &width, int &height, bool &hasPremultipliedAlpha) |
Gets texture data for text. | |
A class for providing platform specific features.
|
static |
Controls whether the screen should remain on.
One flag indicating that the screen should remain on.
|
static |
Controls whether the screen should remain on.
One flag indicating that the screen should remain on.
|
static |
Controls whether the screen should remain on.
One flag indicating that the screen should remain on.
|
static |
Vibrate for the specified amount of time.
If vibrate is not supported, then invoking this method has no effect. Some platforms limit to a maximum duration of 5 seconds. Duration is ignored on iOS due to API limitations.
duration | The duration in seconds. |
|
static |
Vibrate for the specified amount of time.
If vibrate is not supported, then invoking this method has no effect. Some platforms limit to a maximum duration of 5 seconds. Duration is ignored on iOS due to API limitations.
duration | The duration in seconds. |
|
static |
Vibrate for the specified amount of time.
If vibrate is not supported, then invoking this method has no effect. Some platforms limit to a maximum duration of 5 seconds. Duration is ignored on iOS due to API limitations.
duration | The duration in seconds. |