System Tokens

From iRidium Mobile Wiki
Jump to: navigation, search


Description

System Tokens are system variables located in Project Device Panel. They receive values of OS parameters and the device the project runs on.

A system token can be assigned to any graphic item of the interface and the information received from the token will be output in the interface. You cannot write values from the interface in the system token as only the system can enter data to the token.

To assign a system token to the graphic item use the Drag&Drop method. The alternative way of assigning a token is through scripts.


Receive Time

  • "System.Time.Seconds" - system time, seconds
IR.GetVariable("System.Time.Seconds")
  • "System.Time.Minutes" - system time, minutes
IR.GetVariable("System.Time.Minutes")
  • "System.Time.Hour" - system time, hours
IR.GetVariable("System.Time.Hour")
  • "System.Time.24" - system time in 24-hour format
IR.GetVariable("System.Time.24")
  • "System.Time.12_AM_PM" - system time in 12-hour format
IR.GetVariable("System.Time.12_AM_PM")
  • "System.Time.Standart" - system time in the format set for OS
IR.GetVariable("System.Time.Standart")


Receive Date

  • "System.Date.DayOfYear" - system date, a day of the year
IR.GetVariable("System.Time.24")
  • "System.Date.Year" - system date, the current year
IR.GetVariable("System.Date.Year")
  • "System.Date.DayOfWeek" - system date, a day of the week
IR.GetVariable("System.Date.DayOfWeek")
  • "System.Date.Month" - system date, the current month
IR.GetVariable("System.Date.Month")
  • "System.Date.Day" - system date, the current day of the month
IR.GetVariable("System.Date.Day")
  • "System.Date.YYYY_MM_DD" - system date in the format YYYY_MM_DD (numeric format)
IR.GetVariable("System.Date.YYYY_MM_DD")
  • "System.Date.DD_MONTH_YYYY" - system date in the format DD_MONTH_YYYY (alphanumeric format)
IR.GetVariable("System.Date.DD_MONTH_YYYY"")
  • "System.Date.MONTH_DD_YYYY" - system date in the format MONTH_DD_YYYY (alphanumeric format)
IR.GetVariable("System.Date.MONTH_DD_YYYY")
  • "System.Date.DD_MM_YYYY" - system date in the format DD_MM_YYYY (numeric format)
IR.GetVariable("System.Date.DD_MM_YYYY")
  • "System.Date.MM_DD_YYYY" - system date in the format MM_DD_YYYY (numeric format)
IR.GetVariable("System.Date.MM_DD_YYYY")
  • "System.Date.DD_MM" - system date in the format DD_MM (numeric format)
IR.GetVariable("System.Date.DD_MM")
  • "System.Date.MM_DD" - system date in the format MM_DD (numeric format)
IR.GetVariable("System.Date.MM_DD")
  • "System.Date.Weekday" - system date, a day of week (numeric format)
IR.GetVariable("System.Date.Weekday")


Receive GPS Coordinates and Parameters

  • "System.Location.Course" - course
IR.GetVariable("System.Location.Course")
  • "System.Location.Speed" - speed
IR.GetVariable("System.Location.Speed")
  • "System.Location.Altitude" - altitude
IR.GetVariable("System.Location.Altitude")
  • "System.Location.Longitude" - longitude
IR.GetVariable("System.Location.Longitude")
  • "System.Location.Latitude" - latitude
IR.GetVariable("System.Location.Latitude")

Receive Data from Compass

  • "System.Magnetic.Accuracy" - accuracy of readings (intensity of magnetization)
IR.GetVariable("System.Magnetic.Accuarcy")
  • "System.Magnetic.True" - true North
IR.GetVariable("System.Magnetic.True")
  • "System.Magnetic.Heading" - magnetic North
IR.GetVariable("System.Magnetic.Heading")
  • "System.Magnetic.Z" - Z-coordinate
IR.GetVariable("System.Magnetic.Z")
  • "System.Magnetic.Y" - Y-coordinate
IR.GetVariable("System.Magnetic.Y")
  • "System.Magnetic.X" - X-coordinate
IR.GetVariable("System.Magnetic.X")

Receive Data from Accelerometer

  • "System.Accelerometer.Shake" - shake
IR.GetVariable("System.Accelerometer.Shake")
  • "System.Accelerometer.Z" - Z-coordinate
IR.GetVariable("System.Accelerometer.Z")
  • "System.Accelerometer.Y" - Y-coordinate
IR.GetVariable("System.Accelerometer.Y")
  • "System.Accelerometer.X" - X-coordinate
IR.GetVariable("System.Accelerometer.X")

Receive Data from Gyroscope

  • "System.Gyroscope.Z" - Z-coordinate
IR.GetVariable("System.Gyroscope.Z")
  • "System.Gyroscope.Y" - Y-coordinate
IR.GetVariable("System.Gyroscope.Y")
  • "System.Gyroscope.X" - X-coordinate
IR.GetVariable("System.Gyroscope.X")

Receive Data about Device Display

  • "System.Display.FullScreen" - fullscreen mode
IR.GetVariable("System.Display.FullScreen")
  • "System.Display.Height" - height of the display
IR.GetVariable("System.Display.Height")
  • "System.Display.Width" - width of the display
IR.GetVariable("System.Display.Width")
  • "System.Display.Bright" - brightness of the display
IR.GetVariable("System.Display.Bright")
  • "System.Orientation" - orientation of the display
IR.GetVariable("System.Orientation")


1 :::: portrait - home button at the bottom
2 :::: portrait - home button at the top of the screen (so holding your iPad upside down)
3 :::: landscape - home button on the right
4 :::: landscape - home button on the left
5 :::: when flat on the table with the touchscreen facing up
6 :::: when flat and the touchscreen is facing down
0 :::: when the ipad is being moved between orientation

Receive Information about Network

  • "System.Net.Internet" - connection to the Internet
IR.SetVariable("System.Net.Internet")
  • "System.Net.WiFi" - connection to a WiFi network
IR.SetVariable("System.Net.WiFi")

Receive Information about Battery

  • "System.Battery.Level" - level of battery charge
IR.GetVariable("System.Battery.Level")
  • "System.Battery.Status" - battery status ()
IR.GetVariable("System.Battery.Status")

Volume on Device

  • "System.Sound.Volume" - volume value
IR.SetVariable("System.Sound.Volume")
  • "System.Sound.Mute" - mute mode
IR.SetVariable("System.Sound.Mute")

Activate Vibration Mode

  • "System.Vibro" - activate vibration mode
IR.SetVariable("System.Vibro")      //UNDER DEVELOPMENT
DOWNLOAD: Project template