/** * <summary> * Returns true if the screen is powered, false otherwise. * <para> * </para> * <para> * </para> * </summary> * <returns> * either <c>YDisplay.ENABLED_FALSE</c> or <c>YDisplay.ENABLED_TRUE</c>, according to true if the * screen is powered, false otherwise * </returns> * <para> * On failure, throws an exception or returns <c>YDisplay.ENABLED_INVALID</c>. * </para> */ public int get_enabled() { if (_func == null) { throw new YoctoApiProxyException("No Display connected"); } // our enums start at 0 instead of the 'usual' -1 for invalid return(_func.get_enabled() + 1); }