docs(screenOrientation): update docs

This commit is contained in:
Mike Hartington 2016-08-23 14:13:57 -04:00 committed by GitHub
parent ea58a78f62
commit dfdaa157a4

View File

@ -22,6 +22,17 @@ declare var window;
* ScreenOrientation.unlockOrientation(); * ScreenOrientation.unlockOrientation();
* ``` * ```
* *
* @advanced
* Accepted orientation values:
* | Value | Description |
* |-------------------------------|------------------------------------------------------------------------------|
* | portrait-primary | The orientation is in the primary portrait mode. |
* | portrait-secondary | The orientation is in the secondary portrait mode. |
* | landscape-primary | The orientation is in the primary landscape mode. |
* | landscape-secondary | The orientation is in the secondary landscape mode. |
* | portrait | The orientation is either portrait-primary or portrait-secondary (sensor). |
* | landscape | The orientation is either landscape-primary or landscape-secondary (sensor). |
*
*/ */
@Plugin({ @Plugin({
plugin: 'cordova-plugin-screen-orientation', plugin: 'cordova-plugin-screen-orientation',
@ -33,17 +44,7 @@ export class ScreenOrientation {
/** /**
* Lock the orientation to the passed value. * Lock the orientation to the passed value.
* * See below for accepted values
* Accepted orientation values:
* | Value | Description |
* |-------------------------------|------------------------------------------------------------------------------|
* | portrait-primary | The orientation is in the primary portrait mode. |
* | portrait-secondary | The orientation is in the secondary portrait mode. |
* | landscape-primary | The orientation is in the primary landscape mode. |
* | landscape-secondary | The orientation is in the secondary landscape mode. |
* | portrait | The orientation is either portrait-primary or portrait-secondary (sensor). |
* | landscape | The orientation is either landscape-primary or landscape-secondary (sensor). |
*
* @param {orientation} The orientation which should be locked. Accepted values see table above. * @param {orientation} The orientation which should be locked. Accepted values see table above.
*/ */
@Cordova({ sync: true }) @Cordova({ sync: true })