mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(plugin): revert changes to support stable version (#1116)
fix #1001
This commit is contained in:
parent
97cf22eedb
commit
104532e1d7
@ -48,11 +48,10 @@ export class ScreenOrientation {
|
||||
/**
|
||||
* Lock the orientation to the passed value.
|
||||
* See below for accepted values
|
||||
* @param orientation {string} The orientation which should be locked. Accepted values see table below.
|
||||
* @returns {Promise<any>} returns a promise that resolves when the screen orientation is locked, and rejects when an error occurs.
|
||||
* @param orientation {string} The orientation which should be locked. Accepted values see table above.
|
||||
*/
|
||||
@Cordova({ otherPromise: true })
|
||||
static lockOrientation(orientation: string): Promise<string> { return; }
|
||||
@Cordova({ sync: true })
|
||||
static lockOrientation(orientation: string): void { }
|
||||
|
||||
/**
|
||||
* Unlock and allow all orientations.
|
||||
|
Loading…
Reference in New Issue
Block a user