import { ScreenOrientation } from '@ionic-native/screen-orientation' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class ScreenOrientationMock extends ScreenOrientation { /**
     * Convenience enum for possible orientations
     */ ORIENTATIONS : { PORTRAIT_PRIMARY : string ; PORTRAIT_SECONDARY : string ; LANDSCAPE_PRIMARY : string ; LANDSCAPE_SECONDARY : string ; PORTRAIT : string ; LANDSCAPE : string ; ANY : string ; } ; return { Observable < void > } onChange ( ) { return Observable . create ( ( observer ) => { observer . complete ( ) ; } ) ; } ; param orientation { string } return { Promise < any > } lock ( orientation ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; /**
     * Unlock and allow all orientations.
     */ unlock ( ) { } ; /**
     * Get the current orientation of the device.
     */ type : string ; }