diff --git a/src/plugins/screen-orientation.ts b/src/plugins/screen-orientation.ts index 8476b68b6d..28e27888f9 100644 --- a/src/plugins/screen-orientation.ts +++ b/src/plugins/screen-orientation.ts @@ -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} 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 { return; } + @Cordova({ sync: true }) + static lockOrientation(orientation: string): void { } /** * Unlock and allow all orientations.