Creator 2.2.0 can't keep screen on with cc.Device.setKeepScreenOn(true);

Cannot read property ‘setKeepScreenOn’ of undefined