mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
parent
8b921165bb
commit
1c09ee1fbc
@ -49,9 +49,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.
|
||||
*/
|
||||
@Cordova({ sync: true })
|
||||
static lockOrientation(orientation: string): void { }
|
||||
@Cordova({ otherPromise: true })
|
||||
static lockOrientation(orientation: string): Promise<string> { return }
|
||||
|
||||
/**
|
||||
* Unlock and allow all orientations.
|
||||
|
Loading…
Reference in New Issue
Block a user