Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UIHardware - iPhone Development Wiki

UIHardware

From iPhone Development Wiki
Revision as of 15:45, 10 February 2011 by Yllier (talk | contribs) (Created page with ''''UIHardware''' is a Class for setting and and getting some basic properties of the device. It only contains class methods. == Methods == Only methods which have been investiga…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UIHardware is a Class for setting and and getting some basic properties of the device. It only contains class methods.

Methods

Only methods which have been investigated are in this list. For the complete list examine the header.

Signature +(int)ringerState;
Available in 2.0 —

The method Template:ObjcClassCall can be used to obtain the current ringer state. It returns 1 if the ringer is on, 0 for off. Make sure you call this method from a background thread or the app might freeze (tested in SpringBoard).

References