CSOrientationStateSensor Class Reference
Inherits from | CSSensor : NSObject |
---|---|
Declared in | CSOrientationStateSensor.h |
Overview
Sensor that stores the state of the orientation of the phone. This sensor is event based, it stores a new data with each change in the value. Note that this orientation state does not necessarily correspond to the UI state, it is the state of the device itself.
JSON output value format
"value": STRING; //"face up", "face down", "portrait", "portrait upside down", "landscape left", "landscape right", "unknown"
– commitOrientation:
Store new orientation state after a change notification
- (void)commitOrientation:(NSNotification *)notification
Parameters
notification |
Notification containing the new state information. |
---|
Declared In
CSOrientationStateSensor.h