mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-20 01:22:52 +08:00
docs(screenOrientation): update docs
This commit is contained in:
parent
ea58a78f62
commit
dfdaa157a4
@ -22,6 +22,17 @@ declare var window;
|
||||
* 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: 'cordova-plugin-screen-orientation',
|
||||
@ -33,17 +44,7 @@ export class ScreenOrientation {
|
||||
|
||||
/**
|
||||
* Lock the orientation to the passed value.
|
||||
*
|
||||
* 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). |
|
||||
*
|
||||
* See below for accepted values
|
||||
* @param {orientation} The orientation which should be locked. Accepted values see table above.
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
|
Loading…
Reference in New Issue
Block a user