fix(screen-orientation): lockOrientation returns a promise

closes #939
This commit is contained in:
Ibby 2017-01-24 15:00:20 -05:00
parent 8b921165bb
commit 1c09ee1fbc

View File

@ -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.