Developer   API   Core & System   System

  •  Config(0)
  •  Properties(23)
  •  Methods(14)
  •  Events(0)

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.
API Navigation
Skip Navigation Links.
Expand <span>User Interface</span> User Interface
Collapse <span>Core & System</span> Core & System
System
Object
Integer
Float
String
Date
Math
Array
RegExp
Global
Function
Timer
Expand <span>Graphics</span> Graphics
Expand <span>Files and Databases</span> Files and Databases
Expand <span>Crypto</span> Crypto
Expand <span>Native User Interface</span> Native User Interface
Expand <span>Net</span> Net
Expand <span>Media</span> Media
Expand <span>Sensor</span> Sensor
Expand <span>Game Development</span> Game Development