import { Brightness } from '@ionic-native/brightness' ; export class BrightnesMock extends Brightness { param { value } Floating returns { Promise < any > } setBrightness ( value ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getBrightness ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; /**
    * Keeps the screen on. Prevents the device from setting the screen to sleep.
    */ setKeepScreenOn ( value ) { } ; }