Skip to content

Commit

Permalink
fix(screen-orientation): lockOrientation returns a promise
Browse files Browse the repository at this point in the history
closes #939
  • Loading branch information
ihadeed committed Jan 24, 2017
1 parent 8b92116 commit 1c09ee1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/screen-orientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1c09ee1

Please sign in to comment.