System(native)
This class represents underlying system.
Properties
-
applicationId : String
Returns application's unique identifier.
-
avgFPS : Float
Avarage number of frames per second.
-
avgRender : Float
Average render time in ms.
-
country : String
The country (or the region) name, based on ISO Standard 3166.
-
deviceId : String
Returns device's unique identifier.
-
height : Integer
height of the device screen
-
IS_DEBUG : Boolean
True if application is currently in debug mode
-
IS_DIR : Integer
Flag used for directories.
-
IS_EMULATOR : Boolean
True if application runs in emulator
-
IS_SYSTEM : Integer
Flag used for hidden files and directories.
-
IS_READONLY : Integer
Flag used for read-only files.
-
IS_RT_DEBUG : Boolean
True for debug version of Moscrif run-time
-
IS_SYSTEM : Integer
Flag used for system files and directories.
-
IS_TABLET : Boolean
True if aplication runs on tablet
-
language : String
Returns the abbreviated name of the language, ISO Standard 639 names.
-
maxFPS : Float
Maximum number of frames per second.
-
maxRender : Float
Maximum render time in ms.
-
minFPS : Float
Minimum number of frames per second.
-
minRender : Float
Minimum render time in ms.
-
OS_NAME : String
Gets the device's operating system.
-
publicKey : String
Returns Moscrif's RSA public key.
-
tick : Integer
Number of miliseconds. This property is suitable for animation (game) scheduling.
-
width : Integer
width of the device screen
Methods
-
copyFile(source, destination[, overwrite]) : Boolean
Copy source file to destination. If destination file exists and owerwrite is true function rewrites the file.
-
createDir(dir [, createSubDirs]) : Boolean
Creates directory
-
deleteDir(dir) : Boolean
Delete directory / folder. Folder have to be empty.
-
deleteFile(file) : Boolean
Delete file.
-
exec(cmd [, args[, dir]]) : Boolean
This functions manages some system operations like mail or sms sending, calling, pictures taking etc.
-
getFileSize(file) : Integer
Returns size of file in bytes.
-
home() : String
Function returns home of the current application.
-
isDir(dir) : Boolean
Checks, if directory / folder (sets by parameter) exists
-
isFile(file) : Boolean
Checks, if file (sets by parameter) exists.
-
messageBox(message) : Boolean
Displays a modal dialog box that contains text and OK button.
-
path(folder) : String
Creates path to the required folder. F.e.: folder with user documents, program files etc. This folders can be placed diferents on diferent platforms.
-
requestKeyboard(callback, keyboardType) : Boolean
Displays system (build-in native) keyboard.
-
resetApplicationData() : Boolean
Resets application's data. (Android only)
-
scanFiles(path[, ef]) : Integer
This function tries to find all files in required format at specified location.