iPhoneSettings Manual     Reference     Scripting  
Scripting > Runtime Classes > iPhoneSettings
iPhoneSettings
このドキュメントは有志により翻訳されたもので、オフィシャルではありません。オリジナルのページはこちら
This document is unofficially translated by users.Please see the original document here.

翻訳に関する修正など、ご連絡はこちらまで。
Please send e-mail to here, when you have any question about the translation.

編集 (GitHub)

Interface into iPhone specific settings.

Class Variables
screenOrientation

Specifies logical orientation of the screen. Default value is taken from Player "UIInterface Orientation" setting.

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.