mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2024-10-07 00:18:08 +08:00
parent
8b921165bb
commit
1c09ee1fbc
@ -49,9 +49,10 @@ export class ScreenOrientation {
|
|||||||
* Lock the orientation to the passed value.
|
* Lock the orientation to the passed value.
|
||||||
* See below for accepted values
|
* See below for accepted values
|
||||||
* @param orientation {string} The orientation which should be locked. Accepted values see table below.
|
* @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.
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ otherPromise: true })
|
||||||
static lockOrientation(orientation: string): void { }
|
static lockOrientation(orientation: string): Promise<string> { return }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unlock and allow all orientations.
|
* Unlock and allow all orientations.
|
||||||
|
Loading…
Reference in New Issue
Block a user