iPhoneSettings Manual     Reference     Scripting  
Scripting > Runtime Classes > iPhoneSettings
iPhoneSettings

Interface into iPhone specific settings.

Class Variables
screenCanDarken

Allows device to fall into "sleep" state with screen being dim if no touches occurred. Default value is true.

uniqueIdentifier

A unique device identifier. It is guaranteed to be unique for every device (Read Only).

name

The user defined name of the device (Read Only).

model

The model of the device (Read Only).

systemName

The name of the operating system running on the device (Read Only).

generation

The generation of the device (Read Only)

locationServiceStatus

Returns location service status.

locationServiceEnabledByUser

The user can enable or disable location services altogether from the Settings application by toggling the switch in Settings>General>LocationServices.

internetReachability

Returns internet reachability status.

Class Functions
StartLocationServiceUpdates

Starts location service updates. Last location coordinates could be retrieved via iPhoneInput.lastLocation.

StopLocationServiceUpdates

Stops location service updates. This could be useful for saving battery life.